wok annotate xorg-xmodmap/receipt @ rev 25031

Add fatcat
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 09:25:51 2022 +0000 (2022-05-20)
parents ba77100cf503
children
rev   line source
pankso@508 1 # SliTaz package receipt.
pankso@508 2
pankso@508 3 PACKAGE="xorg-xmodmap"
Hans-G?nter@22296 4 VERSION="1.0.10"
pankso@508 5 CATEGORY="x-window"
pankso@508 6 SHORT_DESC="X keyboard and mouse configuration utility."
pankso@508 7 MAINTAINER="pankso@slitaz.org"
pascal@15579 8 LICENSE="MIT"
Hans-G?nter@22296 9 WEB_SITE="https://www.x.org/wiki/"
Hans-G?nter@22296 10
pankso@508 11 SOURCE="xmodmap"
gokhlayeh@6993 12 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@977 13 WGET_URL="$XORG_MIRROR/app/$TARBALL"
pankso@508 14
pascal@15579 15 DEPENDS="xorg-libX11"
pascal@15579 16 BUILD_DEPENDS="xorg-libX11-dev"
pascal@15579 17
pascal@24072 18 current_version()
pascal@24072 19 {
pascal@24072 20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 21 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 22 }
pascal@24072 23
pankso@508 24 # Rules to configure and make the package.
pankso@508 25 compile_rules()
pankso@508 26 {
Hans-G?nter@22296 27 ./configure \
Hans-G?nter@22296 28 --prefix=/usr \
Hans-G?nter@22296 29 --sysconfdir=/etc \
Hans-G?nter@22296 30 --mandir=/usr/share/man \
Hans-G?nter@22296 31 --localstatedir=/var \
Hans-G?nter@22296 32 $CONFIGURE_ARGS &&
Hans-G?nter@22296 33 make &&
Hans-G?nter@22296 34 make DESTDIR=$DESTDIR install
pankso@508 35 }
pankso@508 36
pankso@508 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@508 38 genpkg_rules()
pankso@508 39 {
pankso@508 40 mkdir -p $fs/usr
Hans-G?nter@22296 41 cp -a $install/usr/bin $fs/usr
pankso@508 42 }