wok-6.x view obshutdown/receipt @ rev 24718

updated libarchive and libarchive-dev (3.4.2 -> 3.6.0)
author Hans-G?nter Theisgen
date Tue Mar 15 07:41:02 2022 +0100 (2022-03-15)
parents 1810c4d44a48
children
line source
1 # SliTaz package receipt.
3 PACKAGE="obshutdown"
4 VERSION="0.1-rc1"
5 CATEGORY="x-window"
6 SHORT_DESC="Light Openbox shutdown manager"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="${PACKAGE}-${VERSION}.tar.gz"
10 WEB_SITE="https://github.com/panjandrum/obshutdown"
11 WGET_URL="https://github.com/downloads/panjandrum/$PACKAGE/$TARBALL"
13 DEPENDS="gtk+ cairo openbox"
14 BUILD_DEPENDS="gtk+-dev cairo-dev wget"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://raw.githubusercontent.com/maciej-lech/obshutdown/master/ChangeLog 2>/dev/null | \
20 sed '1!d;s|:||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure $CONFIGURE_ARGS &&
27 IFS=$(echo -en "\n\b")
28 for i in $(grep -lr "#include <glib" src/)
29 do
30 sed -i 's/#include <glib\/.*>/#include <glib\.h>/g' "$i"
31 done &&
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs
39 cp -r $install/usr $fs
40 }
42 post_install()
43 {
44 colorize 36 "To get per user config file:"
45 echo "$ cp /usr/share/obshutdown/example.rc ~/.obshutdown.rc"
46 }