wok annotate xorg-makedepend/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 | b36f8f3e6086 |
children |
rev | line source |
---|---|
gokhlayeh@8080 | 1 # SliTaz package receipt. |
gokhlayeh@8080 | 2 |
gokhlayeh@8080 | 3 PACKAGE="xorg-makedepend" |
Hans-G?nter@22238 | 4 VERSION="1.0.6" |
al@14604 | 5 CATEGORY="development" |
Hans-G?nter@22238 | 6 SHORT_DESC="Create dependencies in makefiles." |
gokhlayeh@8080 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
al@14604 | 8 LICENSE="other" |
Hans-G?nter@22238 | 9 WEB_SITE="https://www.x.org/wiki/" |
Hans-G?nter@22238 | 10 |
slaxemulator@14639 | 11 SOURCE="makedepend" |
slaxemulator@14639 | 12 TARBALL="$SOURCE-$VERSION.tar.bz2" |
al@14604 | 13 WGET_URL="$XORG_MIRROR/util/$TARBALL" |
al@14604 | 14 |
al@14604 | 15 DEPENDS="glibc-base xorg-xproto" |
gokhlayeh@8080 | 16 BUILD_DEPENDS="xorg-xproto" |
gokhlayeh@8080 | 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 |
gokhlayeh@8080 | 24 # Rules to configure and make the package. |
gokhlayeh@8080 | 25 compile_rules() |
gokhlayeh@8080 | 26 { |
Hans-G?nter@22238 | 27 ./configure \ |
Hans-G?nter@22238 | 28 --sysconfdir=/etc \ |
Hans-G?nter@22238 | 29 --localstatedir=/var \ |
al@14604 | 30 $CONFIGURE_ARGS && |
al@14604 | 31 make && |
al@14604 | 32 make install |
gokhlayeh@8080 | 33 } |
gokhlayeh@8080 | 34 |
gokhlayeh@8080 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@8080 | 36 genpkg_rules() |
gokhlayeh@8080 | 37 { |
al@14604 | 38 mkdir -p $fs/usr/share/licenses |
al@14604 | 39 |
Hans-G?nter@22238 | 40 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE.txt |
Hans-G?nter@22238 | 41 cp -a $install/usr/bin $fs/usr |
gokhlayeh@8080 | 42 } |