wok-current annotate xorg-xf86dgaproto/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 | 814c58f64f83 |
children | a23978bfa665 |
rev | line source |
---|---|
pankso@88 | 1 # SliTaz package receipt. |
pankso@88 | 2 |
pankso@88 | 3 PACKAGE="xorg-xf86dgaproto" |
pankso@5291 | 4 VERSION="2.1" |
pankso@200 | 5 CATEGORY="development" |
al@14604 | 6 SHORT_DESC="XF86DGA extension headers" |
pankso@88 | 7 MAINTAINER="pankso@slitaz.org" |
al@14604 | 8 LICENSE="other" |
pascal@20423 | 9 WEB_SITE="https://www.x.org/" |
slaxemulator@14639 | 10 SOURCE="xf86dgaproto" |
slaxemulator@14639 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@88 | 12 WGET_URL="$XORG_MIRROR/proto/$TARBALL" |
pankso@16035 | 13 HOST_ARCH="i486 arm" |
pankso@88 | 14 |
pascal@15598 | 15 DEPENDS="xorg-util-macros pkg-config" |
al@14604 | 16 # /usr/include/X11/extensions/xf86dga.h: #include <X11/extensions/Xxf86dga.h> ? |
al@14604 | 17 BUILD_DEPENDS="xorg-util-macros" |
al@14604 | 18 |
pascal@24072 | 19 current_version() |
pascal@24072 | 20 { |
pascal@24072 | 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 22 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 23 } |
pascal@24072 | 24 |
pankso@88 | 25 # Rules to configure and make the package. |
pankso@88 | 26 compile_rules() |
pankso@88 | 27 { |
al@14604 | 28 ./configure \ |
al@14604 | 29 --sysconfdir=/etc \ |
al@14604 | 30 --localstatedir=/var \ |
al@14604 | 31 $CONFIGURE_ARGS && |
al@14604 | 32 make && |
al@14604 | 33 make install |
pankso@88 | 34 } |
pankso@88 | 35 |
pankso@88 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@88 | 37 genpkg_rules() |
pankso@88 | 38 { |
al@14604 | 39 mkdir -p $fs/usr/share/licenses |
al@14604 | 40 cp -a $src/COPYING $fs/usr/share/licenses/$PACKAGE.txt |
al@14604 | 41 |
al@14604 | 42 cp -a $install/* $fs |
pankso@88 | 43 } |