wok diff obshutdown/receipt @ rev 21115
libaio: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 19 18:51:13 2019 +0100 (2019-03-19) |
parents | |
children | 34e801e0eb52 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/obshutdown/receipt Tue Mar 19 18:51:13 2019 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="obshutdown" 1.7 +VERSION="0.1-rc1" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="Light Openbox shutdown manager" 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +TARBALL="${PACKAGE}-${VERSION}.tar.gz" 1.13 +WEB_SITE="https://github.com/panjandrum/obshutdown" 1.14 +WGET_URL="https://github.com/downloads/panjandrum/$PACKAGE/$TARBALL" 1.15 + 1.16 +DEPENDS="gtk+ cairo openbox" 1.17 +BUILD_DEPENDS="gtk+-dev cairo-dev wget" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + ./configure $CONFIGURE_ARGS && 1.23 + IFS=$(echo -en "\n\b") 1.24 + for i in $(grep -lr "#include <glib" src/) 1.25 + do 1.26 + sed -i 's/#include <glib\/.*>/#include <glib\.h>/g' "$i" 1.27 + done && 1.28 + make && make install 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + mkdir -p $fs 1.35 + cp -r $install/usr $fs 1.36 +} 1.37 + 1.38 +post_install() 1.39 +{ 1.40 + colorize 36 "To get per user config file:" 1.41 + echo "$ cp /usr/share/obshutdown/example.rc ~/.obshutdown.rc" 1.42 +}