wok-next annotate obshutdown/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 82b613cfd1e0 |
rev | line source |
---|---|
al@20513 | 1 # SliTaz package receipt v2. |
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" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pankso@15938 | 8 LICENSE="GPL2" |
al@20513 | 9 WEB_SITE="https://github.com/panjandrum/obshutdown" |
al@20513 | 10 |
al@21020 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@15938 | 12 WGET_URL="https://github.com/downloads/panjandrum/$PACKAGE/$TARBALL" |
pankso@15938 | 13 |
al@21017 | 14 BUILD_DEPENDS="gtk2-dev cairo-dev" |
pankso@15938 | 15 |
al@20513 | 16 compile_rules() { |
pankso@15938 | 17 ./configure $CONFIGURE_ARGS && |
pankso@15938 | 18 IFS=$(echo -en "\n\b") |
al@20513 | 19 for i in $(grep -lr "#include <glib" src/); do |
pankso@15938 | 20 sed -i 's/#include <glib\/.*>/#include <glib\.h>/g' "$i" |
pankso@15938 | 21 done && |
al@21020 | 22 make && |
al@21020 | 23 make install |
pankso@15938 | 24 } |
pankso@15938 | 25 |
al@20513 | 26 genpkg_rules() { |
al@20513 | 27 copy @std |
al@21017 | 28 DEPENDS="gtk2 cairo openbox" |
pankso@15938 | 29 } |
pankso@15938 | 30 |
al@20513 | 31 post_install() { |
al@20513 | 32 [ -n "$quiet" ] || cat <<EOT |
al@20513 | 33 |
al@20513 | 34 .--------------------------------------------------------. |
al@20513 | 35 | To get per user config file: | |
al@20513 | 36 | $ cp /usr/share/obshutdown/example.rc ~/.obshutdown.rc | |
al@20513 | 37 '--------------------------------------------------------' |
al@20513 | 38 EOT |
pankso@15938 | 39 } |