wok annotate obshutdown/receipt @ rev 16578
Up: prosody (0.9.4) + port to ARM (prosody is in last PiMag, let build a private XMPP chat server)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 03 12:29:58 2014 +0200 (2014-05-03) |
parents | |
children | 34e801e0eb52 |
rev | line source |
---|---|
pankso@15938 | 1 # SliTaz package receipt. |
pankso@15938 | 2 |
pankso@15938 | 3 PACKAGE="obshutdown" |
pankso@15938 | 4 VERSION="0.1-rc1" |
pankso@15938 | 5 CATEGORY="x-window" |
pankso@15938 | 6 SHORT_DESC="Light Openbox shutdown manager" |
pankso@15938 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@15938 | 8 LICENSE="GPL2" |
pankso@15938 | 9 TARBALL="${PACKAGE}-${VERSION}.tar.gz" |
pankso@15938 | 10 WEB_SITE="https://github.com/panjandrum/obshutdown" |
pankso@15938 | 11 WGET_URL="https://github.com/downloads/panjandrum/$PACKAGE/$TARBALL" |
pankso@15938 | 12 |
pankso@15938 | 13 DEPENDS="gtk+ cairo openbox" |
pankso@15938 | 14 BUILD_DEPENDS="gtk+-dev cairo-dev wget" |
pankso@15938 | 15 |
pankso@15938 | 16 # Rules to configure and make the package. |
pankso@15938 | 17 compile_rules() |
pankso@15938 | 18 { |
pankso@15938 | 19 ./configure $CONFIGURE_ARGS && |
pankso@15938 | 20 IFS=$(echo -en "\n\b") |
pankso@15938 | 21 for i in $(grep -lr "#include <glib" src/) |
pankso@15938 | 22 do |
pankso@15938 | 23 sed -i 's/#include <glib\/.*>/#include <glib\.h>/g' "$i" |
pankso@15938 | 24 done && |
pankso@15938 | 25 make && make install |
pankso@15938 | 26 } |
pankso@15938 | 27 |
pankso@15938 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@15938 | 29 genpkg_rules() |
pankso@15938 | 30 { |
pankso@15938 | 31 mkdir -p $fs |
pankso@15938 | 32 cp -r $install/usr $fs |
pankso@15938 | 33 } |
pankso@15938 | 34 |
pankso@15938 | 35 post_install() |
pankso@15938 | 36 { |
pankso@15938 | 37 colorize 36 "To get per user config file:" |
pankso@15938 | 38 echo "$ cp /usr/share/obshutdown/example.rc ~/.obshutdown.rc" |
pankso@15938 | 39 } |