wok-current view xsuspend/receipt @ rev 24319

Add xsuspend
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 25 17:24:16 2022 +0000 (2022-01-25)
parents
children 30a8f0bbbbe3
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 .. &&
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 }