wok annotate obshutdown/receipt @ rev 18682

Add mps-youtube (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 09 18:50:42 2015 +0100 (2015-12-09)
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 }