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