wok-next annotate awesome/receipt @ rev 20259
xsave: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 07 18:34:13 2017 +0100 (2017-11-07) |
parents | 0606c4356e47 |
children | 7eb047d2b438 |
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" |
al@16697 | 6 SHORT_DESC="Highly configurable framework window manager" |
mallory@2687 | 7 MAINTAINER="mallory@sweetpeople.org" |
pascal@15128 | 8 LICENSE="GPL2" |
slaxemulator@12865 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@16697 | 10 WEB_SITE="http://awesome.naquadah.org/" |
al@16697 | 11 WGET_URL="${WEB_SITE}download/$TARBALL" |
al@17501 | 12 TAGS="window-manager" |
mallory@2687 | 13 |
al@16697 | 14 DEPENDS="cairo dbus gdk-pixbuf libxdg-basedir lgi lua startup-notification \ |
al@16697 | 15 xcb-util-image xcb-util-keysyms xcb-util-wm xorg-libXcursor" |
pascal@20233 | 16 BUILD_DEPENDS="cmake xorg-libX11-dev xorg-libxcb-dev xcb-util-dev \ |
al@16697 | 17 xcb-util-keysyms-dev xcb-util-image-dev xcb-util-wm-dev lua-dev pango-dev \ |
al@16697 | 18 cairo-dev imlib2-dev dbus-dev libev-dev gperf cairo libxdg-basedir-dev \ |
al@16697 | 19 startup-notification-dev imagemagick pkg-config freetype-dev fontconfig-dev \ |
al@16697 | 20 libpng-dev libxdg-basedir-dev openexr libltdl gdk-pixbuf-dev \ |
al@16697 | 21 xorg-libXcursor-dev lgi" |
pankso@9792 | 22 |
mallory@2687 | 23 # Rules to configure and make the package. |
mallory@2687 | 24 compile_rules() |
mallory@2687 | 25 { |
pascal@17670 | 26 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ldl" |
pascal@17777 | 27 export AWESOME_IGNORE_LGI=1 |
al@16697 | 28 make CMAKE_ARGS=" -DCMAKE_INSTALL_PREFIX:PATH=/usr \ |
al@16697 | 29 -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 { |
al@16697 | 37 cp -a $install/* $fs |
al@16697 | 38 |
al@16697 | 39 # move lua scripts to lua directory |
al@16697 | 40 mkdir -p $fs/usr/share/lua |
al@16697 | 41 mv $fs/usr/share/awesome/lib $fs/usr/share/lua/5.2 |
al@16697 | 42 |
al@16697 | 43 # add pango typelibs |
al@16697 | 44 # (not need to install pango-dev with full stack of dev packages) |
al@16697 | 45 mkdir -p $fs/usr/lib |
al@16697 | 46 cp -a $WOK/pango/install/usr/lib/girepository-1.0 $fs/usr/lib |
mallory@2687 | 47 } |
mallory@2687 | 48 |
mallory@3114 | 49 post_install() |
mallory@3114 | 50 { |
pascal@18670 | 51 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
mallory@3114 | 52 # Adding WM to SLIM available sessions. |
mallory@3114 | 53 if ! echo "$res" | grep -q $PACKAGE; then |
al@18667 | 54 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" |
mallory@3114 | 55 fi |
mallory@3114 | 56 } |
mallory@3114 | 57 |
mallory@3114 | 58 post_remove() |
mallory@3114 | 59 { |
mallory@3114 | 60 # Remove WM from SLIM available sessions. |
al@18667 | 61 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
al@18667 | 62 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
mallory@3114 | 63 fi |
mallory@3114 | 64 } |