wok annotate xorg-xtrans/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents 7760fd42a974
children
rev   line source
pankso@20 1 # SliTaz package receipt.
pankso@20 2
pankso@20 3 PACKAGE="xorg-xtrans"
Hans-G?nter@22243 4 VERSION="1.4.0"
pankso@200 5 CATEGORY="development"
Hans-G?nter@22243 6 SHORT_DESC="Abstract network code for X."
pankso@20 7 MAINTAINER="pankso@slitaz.org"
al@14636 8 LICENSE="other"
Hans-G?nter@22243 9 WEB_SITE="https://www.x.org/wiki/"
Hans-G?nter@22243 10
slaxemulator@14639 11 SOURCE="xtrans"
slaxemulator@14639 12 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@20 13 WGET_URL="$XORG_MIRROR/lib/$TARBALL"
pankso@20 14
al@14636 15 DEPENDS="xorg-xproto"
pankso@12503 16 BUILD_DEPENDS="xorg-util-macros"
pankso@12503 17
Hans-G?nter@22243 18 HOST_ARCH="i486 arm"
Hans-G?nter@22243 19
pascal@24072 20 current_version()
pascal@24072 21 {
pascal@24072 22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 23 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 24 }
pascal@24072 25
pankso@20 26 # Rules to configure and make the package.
pankso@20 27 compile_rules()
pankso@20 28 {
Hans-G?nter@22243 29 ./configure \
Hans-G?nter@22243 30 --sysconfdir=/etc \
Hans-G?nter@22243 31 --localstatedir=/var \
pankso@12503 32 $CONFIGURE_ARGS &&
al@14636 33 make &&
al@14636 34 make install
pankso@20 35 }
pankso@20 36
pankso@20 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@20 38 genpkg_rules()
pankso@20 39 {
al@14636 40 mkdir -p $fs/usr/share/licenses
al@14636 41
Hans-G?nter@22243 42 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE.txt
Hans-G?nter@22243 43 cp -a $install/* $fs
Hans-G?nter@22243 44
al@14636 45 rm -rf $fs/usr/share/doc
pankso@20 46 }