wok-current annotate awesome/receipt @ rev 14373
Up: libraw-dev (0.14.7)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Apr 21 20:21:38 2013 +0200 (2013-04-21) |
parents | 56dab4b7208f |
children | 8af9cc5386a5 |
rev | line source |
---|---|
mallory@2687 | 1 # SliTaz package receipt. |
mallory@2687 | 2 |
mallory@2687 | 3 PACKAGE="awesome" |
slaxemulator@12865 | 4 VERSION="3.4.11" |
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" |
slaxemulator@12865 | 8 TARBALL="$PACKAGE-$VERSION.tar.xz" |
mallory@2687 | 9 WEB_SITE="http://awesome.naquadah.org" |
mallory@2687 | 10 WGET_URL="$WEB_SITE/download/$TARBALL" |
jozee@3564 | 11 TAGS="window-manager wm" |
mallory@2687 | 12 |
slaxemulator@12865 | 13 DEPENDS="xorg-libX11 libxcb xcb-util xcb-util-keysyms xcb-util-image xcb-util-wm \ |
slaxemulator@12865 | 14 lua pango cairo imlib2 dbus libev libxdg-basedir startup-notification \ |
slaxemulator@12865 | 15 freetype fontconfig libpng libxdg-basedir" |
slaxemulator@12865 | 16 BUILD_DEPENDS="cmake xorg-libX11-dev libxcb-dev xcb-util-dev xcb-util-keysyms-dev \ |
slaxemulator@12865 | 17 xcb-util-image-dev xcb-util-wm-dev lua-dev pango-dev cairo-dev imlib2-dev \ |
slaxemulator@12865 | 18 dbus-dev libev-dev gperf cairo libxdg-basedir-dev startup-notification-dev \ |
pascal@12944 | 19 imagemagick pkg-config freetype-dev fontconfig-dev libpng-dev libxdg-basedir-dev \ |
pascal@12944 | 20 openexr libltdl" |
pankso@9792 | 21 |
mallory@2687 | 22 # Rules to configure and make the package. |
mallory@2687 | 23 compile_rules() |
mallory@2687 | 24 { |
mallory@2687 | 25 cd $src |
pascal@12944 | 26 export LDFLAGS="-Wl,--copy-dt-needed-entries -ldl" |
pascal@12944 | 27 sed -i 's|glib/gspawn|glib|' spawn.c |
slaxemulator@9000 | 28 patch -Np1 -i $stuff/0001-Normalize-icon-path-names-fixes-869.patch |
slaxemulator@6479 | 29 make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \ |
slaxemulator@6479 | 30 -DCMAKE_BUILD_TYPE=RELEASE" && |
slaxemulator@9000 | 31 make install |
mallory@2687 | 32 |
mallory@2687 | 33 } |
mallory@2687 | 34 |
mallory@2687 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2687 | 36 genpkg_rules() |
mallory@2687 | 37 { |
mallory@2687 | 38 mkdir -p $fs/etc |
mallory@2687 | 39 cp -a $_pkg/etc $fs/ |
mallory@2687 | 40 mkdir -p $fs/usr |
mallory@2687 | 41 cp -a $_pkg/usr/bin $fs/usr |
mallory@2687 | 42 cp -a $_pkg/usr/share $fs/usr |
mallory@2687 | 43 } |
mallory@2687 | 44 |
mallory@3114 | 45 post_install() |
mallory@3114 | 46 { |
mallory@3114 | 47 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` |
mallory@3114 | 48 # Adding WM to SLIM available sessions. |
mallory@3114 | 49 if ! echo "$res" | grep -q $PACKAGE; then |
mallory@3114 | 50 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
mallory@3114 | 51 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf |
mallory@3114 | 52 status |
mallory@3114 | 53 fi |
mallory@3114 | 54 } |
mallory@3114 | 55 |
mallory@3114 | 56 post_remove() |
mallory@3114 | 57 { |
mallory@3114 | 58 # Remove WM from SLIM available sessions. |
mallory@3114 | 59 if grep -q $PACKAGE $1/etc/slim.conf; then |
mallory@3114 | 60 sed -i s/,$PACKAGE// $1/etc/slim.conf |
mallory@3114 | 61 fi |
mallory@3114 | 62 } |
mallory@3114 | 63 |