wok-6.x annotate xorg-xextproto/receipt @ rev 24565
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 25 22:15:31 2022 +0000 (2022-02-25) |
parents | a87f0d6e3db3 |
children |
rev | line source |
---|---|
pankso@20 | 1 # SliTaz package receipt. |
pankso@20 | 2 |
pankso@20 | 3 PACKAGE="xorg-xextproto" |
Hans-G?nter@22257 | 4 VERSION="7.3.0" |
pankso@211 | 5 CATEGORY="development" |
Hans-G?nter@22257 | 6 SHORT_DESC="XExt extension headers." |
pankso@20 | 7 MAINTAINER="pankso@slitaz.org" |
al@14604 | 8 LICENSE="other" |
Hans-G?nter@22257 | 9 WEB_SITE="https://www.x.org/wiki/" |
Hans-G?nter@22257 | 10 |
slaxemulator@14639 | 11 SOURCE="xextproto" |
slaxemulator@14639 | 12 TARBALL="$SOURCE-$VERSION.tar.bz2" |
al@14604 | 13 WGET_URL="$XORG_MIRROR/proto/$TARBALL" |
Hans-G?nter@22257 | 14 |
Hans-G?nter@22257 | 15 DEPENDS="pkg-config xorg-util-macros" |
Hans-G?nter@22257 | 16 BUILD_DEPENDS="xorg-util-macros" |
Hans-G?nter@22257 | 17 |
pankso@16021 | 18 HOST_ARCH="i486 arm" |
al@14604 | 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@22257 | 29 ./configure \ |
Hans-G?nter@22257 | 30 --sysconfdir=/etc \ |
Hans-G?nter@22257 | 31 --localstatedir=/var \ |
pankso@12503 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@22259 | 33 make -j1 && |
Hans-G?nter@22259 | 34 make install -j1 |
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@14604 | 40 mkdir -p $fs/usr/share/licenses |
al@14604 | 41 |
Hans-G?nter@22257 | 42 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE.txt |
Hans-G?nter@22257 | 43 cp -a $install/* $fs |
Hans-G?nter@22257 | 44 |
al@14604 | 45 rm -rf $fs/usr/share/doc |
pankso@20 | 46 } |