wok-next view obshutdown/receipt @ rev 21105
Small updates... "bzip2" and "cairo": follow "libpkg - pkg - pkg-dev" rule
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 04 17:29:48 2019 +0200 (2019-01-04) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="obshutdown"
4 VERSION="0.1-rc1"
5 CATEGORY="x-window"
6 SHORT_DESC="Light Openbox shutdown manager"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/panjandrum/obshutdown"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/downloads/panjandrum/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="gtk2-dev cairo-dev"
16 compile_rules() {
17 ./configure $CONFIGURE_ARGS &&
18 IFS=$(echo -en "\n\b")
19 for i in $(grep -lr "#include <glib" src/); do
20 sed -i 's/#include <glib\/.*>/#include <glib\.h>/g' "$i"
21 done &&
22 make &&
23 make install
24 }
26 genpkg_rules() {
27 copy @std
28 DEPENDS="gtk2 libcairo openbox"
29 }
31 post_install() {
32 [ -n "$quiet" ] || cat <<EOT
34 .--------------------------------------------------------.
35 | To get per user config file: |
36 | $ cp /usr/share/obshutdown/example.rc ~/.obshutdown.rc |
37 '--------------------------------------------------------'
38 EOT
39 }