wok view xorg-iceauth/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 6aab4c6721ad
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-iceauth"
4 VERSION="1.0.8"
5 CATEGORY="x-window"
6 SHORT_DESC="ICE authority file utility."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.x.org/wiki/"
11 SOURCE="iceauth"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="https://xorg.freedesktop.org/archive/individual/app/$TARBALL"
15 DEPENDS="xorg-libICE"
16 BUILD_DEPENDS="pkg-config xorg-libICE-dev"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $install/usr/bin $fs/usr
41 }