wok annotate xdotool/receipt @ rev 24133

Up tazinst (115)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 23 15:17:56 2021 +0000 (2021-10-23)
parents ef8e00335e1e
children 0262035dc1e7
rev   line source
jozee@2731 1 # SliTaz package receipt.
jozee@2731 2
jozee@2731 3 PACKAGE="xdotool"
Hans-G?nter@22159 4 VERSION="3.20160805.1"
jozee@2731 5 CATEGORY="misc"
Hans-G?nter@22159 6 SHORT_DESC="Fake keyboard and mouse input, window management, and more."
jozee@2731 7 MAINTAINER="jozee@slitaz.org"
pascal@15601 8 LICENSE="BSD"
Hans-G?nter@22159 9 WEB_SITE="https://www.github.com/jordansissel/xdotool/"
Hans-G?nter@22159 10
jozee@2731 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22159 12 WGET_URL="${WEB_SITE}releases/download/v$VERSION/$TARBALL"
jozee@2731 13
pascal@15601 14 DEPENDS="xorg-libX11 xorg-libXtst"
Hans-G?nter@22159 15 BUILD_DEPENDS="libxkbcommon-dev xorg-libX11-dev xorg-libXtst-dev xorg-libXtst"
pascal@15601 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
jozee@2731 23 # Rules to configure and make the package.
jozee@2731 24 compile_rules()
jozee@2731 25 {
pascal@20212 26 sed -i 's|uname -m|echo i486|' Makefile
Hans-G?nter@22159 27 make PREFIX=/usr &&
Hans-G?nter@22159 28 make install \
Hans-G?nter@22159 29 PREFIX=/usr \
Hans-G?nter@22159 30 INSTALLMAN=/usr/share/man \
Hans-G?nter@22159 31 DESTDIR=$DESTDIR
jozee@2731 32 }
jozee@2731 33
jozee@2731 34 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2731 35 genpkg_rules()
jozee@2731 36 {
llevrel@19005 37 mkdir -p $fs/usr
Hans-G?nter@22159 38
Hans-G?nter@22159 39 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22159 40 cp -a $install/usr/lib $fs/usr
jozee@2731 41 }