wok view obshutdown/receipt @ rev 25581

Update some web_site & wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 27 11:13:29 2023 +0000 (12 months ago)
parents 34e801e0eb52
children
line source
1 # SliTaz package receipt.
3 PACKAGE="obshutdown"
4 GITHASH="f532f37919b154ea62e04c7af575b0ad9cea01a6" # 20110910
5 VERSION="0.1-rc1"
6 CATEGORY="x-window"
7 SHORT_DESC="Light Openbox shutdown manager"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="${PACKAGE}-${VERSION}.tar.gz"
11 WEB_SITE="https://github.com/maciej-lech/obshutdown"
12 WGET_URL="https://github.com/maciej-lech/obshutdown/archive/$GITHASH.tar.gz"
14 DEPENDS="gtk+ cairo openbox"
15 BUILD_DEPENDS="gtk+-dev cairo-dev wget"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://raw.githubusercontent.com/maciej-lech/obshutdown/master/ChangeLog 2>/dev/null | \
21 sed '1!d;s|:||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure $CONFIGURE_ARGS &&
28 IFS=$(echo -en "\n\b")
29 for i in $(grep -lr "#include <glib" src/)
30 do
31 sed -i 's/#include <glib\/.*>/#include <glib\.h>/g' "$i"
32 done &&
33 make && make install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs
40 cp -r $install/usr $fs
41 }
43 post_install()
44 {
45 colorize 36 "To get per user config file:"
46 echo "$ cp /usr/share/obshutdown/example.rc ~/.obshutdown.rc"
47 }