wok-6.x annotate ossp-uuid/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | 8740ca9c3133 |
children |
rev | line source |
---|---|
pascal@17531 | 1 # SliTaz package receipt. |
pascal@17531 | 2 |
pascal@17531 | 3 PACKAGE="ossp-uuid" |
Hans-G?nter@21648 | 4 VERSION="1.6.2" |
pascal@17531 | 5 CATEGORY="base-system" |
pascal@17531 | 6 SHORT_DESC="Universally Unique Identifier tools" |
pascal@17531 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17531 | 8 LICENSE="MIT" |
Hans-G?nter@21648 | 9 WEB_SITE="http://www.ossp.org/pkg/lib/uuid/" |
Hans-G?nter@21648 | 10 |
Hans-G?nter@21648 | 11 SOURCE="uuid" |
pascal@17531 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@21648 | 13 #WGET_URL="ftp://ftp.ossp.org/pkg/lib/$SOURCE/$TARBALL" |
Hans-G?nter@21648 | 14 WGET_URL="http://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/$SOURCE/$TARBALL" |
pascal@17531 | 15 |
pascal@24453 | 16 # What is the latest version available today? |
pascal@24453 | 17 current_version() |
pascal@24453 | 18 { |
pascal@24453 | 19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 20 sed "/latest/d;/$SOURC-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 21 } |
pascal@24453 | 22 |
pascal@17531 | 23 # Rules to configure and make the package. |
pascal@17531 | 24 compile_rules() |
pascal@17531 | 25 { |
Hans-G?nter@21648 | 26 ./configure \ |
Hans-G?nter@21648 | 27 --prefix=/usr \ |
Hans-G?nter@21648 | 28 --mandir=/usr/share/man \ |
pascal@17531 | 29 $CONFIGURE_ARGS && |
pascal@17531 | 30 make && |
pascal@17531 | 31 make DESTDIR=$DESTDIR install |
pascal@17531 | 32 } |
pascal@17531 | 33 |
pascal@17531 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17531 | 35 genpkg_rules() |
pascal@17531 | 36 { |
pascal@17531 | 37 mkdir -p $fs/usr/lib |
Hans-G?nter@21648 | 38 |
Hans-G?nter@21648 | 39 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21648 | 40 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@17531 | 41 } |