wok annotate awesome/receipt @ rev 16521

libgd: try an other fix!
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 26 00:27:15 2014 +0200 (2014-04-26)
parents b804c5f31614
children 1d98908f8e3b
rev   line source
mallory@2687 1 # SliTaz package receipt.
mallory@2687 2
mallory@2687 3 PACKAGE="awesome"
pascal@15128 4 VERSION="3.5.1"
mallory@2687 5 CATEGORY="x-window"
mallory@2687 6 SHORT_DESC="awesome is a highly configurable, next generation framework window manager for X."
mallory@2687 7 MAINTAINER="mallory@sweetpeople.org"
pascal@15128 8 LICENSE="GPL2"
slaxemulator@12865 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
mallory@2687 10 WEB_SITE="http://awesome.naquadah.org"
mallory@2687 11 WGET_URL="$WEB_SITE/download/$TARBALL"
jozee@3564 12 TAGS="window-manager wm"
mallory@2687 13
slaxemulator@12865 14 DEPENDS="xorg-libX11 libxcb xcb-util xcb-util-keysyms xcb-util-image xcb-util-wm \
slaxemulator@12865 15 lua pango cairo imlib2 dbus libev libxdg-basedir startup-notification \
slaxemulator@12865 16 freetype fontconfig libpng libxdg-basedir"
slaxemulator@12865 17 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev xcb-util-keysyms-dev \
slaxemulator@12865 18 xcb-util-image-dev xcb-util-wm-dev lua-dev pango-dev cairo-dev imlib2-dev \
slaxemulator@12865 19 dbus-dev libev-dev gperf cairo libxdg-basedir-dev startup-notification-dev \
pascal@12944 20 imagemagick pkg-config freetype-dev fontconfig-dev libpng-dev libxdg-basedir-dev \
pascal@15128 21 openexr libltdl gdk-pixbuf-dev"
pankso@9792 22
mallory@2687 23 # Rules to configure and make the package.
mallory@2687 24 compile_rules()
mallory@2687 25 {
pascal@15128 26 cd $src
pascal@15128 27 export LDFLAGS="-Wl,--copy-dt-needed-entries -ldl"
pascal@15128 28 export AWESOME_IGNORE_LGI=1
pascal@15128 29 make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \
pascal@15128 30 -DCMAKE_BUILD_TYPE=RELEASE" &&
pascal@15128 31 make install
mallory@2687 32 }
mallory@2687 33
mallory@2687 34 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2687 35 genpkg_rules()
mallory@2687 36 {
mallory@2687 37 mkdir -p $fs/etc
pascal@15128 38 cp -a $install/etc $fs/
mallory@2687 39 mkdir -p $fs/usr
pascal@15128 40 cp -a $install/usr/local/bin $fs/usr
pascal@15128 41 cp -a $install/usr/local/share $fs/usr
mallory@2687 42 }
mallory@2687 43
mallory@3114 44 post_install()
mallory@3114 45 {
mallory@3114 46 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
mallory@3114 47 # Adding WM to SLIM available sessions.
mallory@3114 48 if ! echo "$res" | grep -q $PACKAGE; then
mallory@3114 49 echo -n "Adding $PACKAGE to /etc/slim.conf..."
mallory@3114 50 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
mallory@3114 51 status
mallory@3114 52 fi
mallory@3114 53 }
mallory@3114 54
mallory@3114 55 post_remove()
mallory@3114 56 {
mallory@3114 57 # Remove WM from SLIM available sessions.
mallory@3114 58 if grep -q $PACKAGE $1/etc/slim.conf; then
mallory@3114 59 sed -i s/,$PACKAGE// $1/etc/slim.conf
mallory@3114 60 fi
mallory@3114 61 }
mallory@3114 62