wok-current annotate awesome/receipt @ rev 12865
Up: awesome to 3.4.11.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 24 21:17:01 2012 +0000 (2012-05-24) |
parents | 972694670737 |
children | b804c5f31614 |
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 \ |
slaxemulator@12865 | 19 imagemagick pkg-config freetype-dev fontconfig-dev libpng-dev libxdg-basedir-dev openexr" |
pankso@9792 | 20 |
mallory@2687 | 21 # Rules to configure and make the package. |
mallory@2687 | 22 compile_rules() |
mallory@2687 | 23 { |
mallory@2687 | 24 cd $src |
slaxemulator@9000 | 25 patch -Np1 -i $stuff/0001-Normalize-icon-path-names-fixes-869.patch |
slaxemulator@6479 | 26 make CMAKE_ARGS=" -DPREFIX=/usr -DXDG_CONFIG_DIR=/etc/xdg \ |
slaxemulator@6479 | 27 -DCMAKE_BUILD_TYPE=RELEASE" && |
slaxemulator@9000 | 28 make install |
mallory@2687 | 29 |
mallory@2687 | 30 } |
mallory@2687 | 31 |
mallory@2687 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2687 | 33 genpkg_rules() |
mallory@2687 | 34 { |
mallory@2687 | 35 mkdir -p $fs/etc |
mallory@2687 | 36 cp -a $_pkg/etc $fs/ |
mallory@2687 | 37 mkdir -p $fs/usr |
mallory@2687 | 38 cp -a $_pkg/usr/bin $fs/usr |
mallory@2687 | 39 cp -a $_pkg/usr/share $fs/usr |
mallory@2687 | 40 } |
mallory@2687 | 41 |
mallory@3114 | 42 post_install() |
mallory@3114 | 43 { |
mallory@3114 | 44 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` |
mallory@3114 | 45 # Adding WM to SLIM available sessions. |
mallory@3114 | 46 if ! echo "$res" | grep -q $PACKAGE; then |
mallory@3114 | 47 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
mallory@3114 | 48 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf |
mallory@3114 | 49 status |
mallory@3114 | 50 fi |
mallory@3114 | 51 } |
mallory@3114 | 52 |
mallory@3114 | 53 post_remove() |
mallory@3114 | 54 { |
mallory@3114 | 55 # Remove WM from SLIM available sessions. |
mallory@3114 | 56 if grep -q $PACKAGE $1/etc/slim.conf; then |
mallory@3114 | 57 sed -i s/,$PACKAGE// $1/etc/slim.conf |
mallory@3114 | 58 fi |
mallory@3114 | 59 } |
mallory@3114 | 60 |