wok-current annotate xsuspend/receipt @ rev 24526

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