wok-6.x view xsuspend/receipt @ rev 25007

updated nut (2.7.4 -> 2.8.0)
author Hans-G?nter Theisgen
date Mon May 16 16:55:37 2022 +0100 (2022-05-16)
parents 7cfc423aaa00
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xsuspend"
4 VERSION="1.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Auto-suspend inactive X11 applications"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://kernc.github.io/xsuspender/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/kernc/xsuspender/archive/refs/tags/$VERSION.tar.gz"
14 DEPENDS="libwnck3 glib"
15 BUILD_DEPENDS="libwnck3-dev glib-dev cmake pkg-config"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed 's|if GLIB_MINOR_VERSION.*|if 0|' -i src/config.c
28 cd build
29 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc .. &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
39 cp -a $install/etc $fs/
40 cp -a $install/usr/bin $fs/usr
41 }