wok view popt/receipt @ rev 24102
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 17 10:35:57 2021 +0000 (2021-09-17) |
parents | a78610b2eb47 |
children | 8dad5987f564 |
line source
1 # SliTaz package receipt.
3 PACKAGE="popt"
4 VERSION="1.16"
5 CATEGORY="system-tools"
6 SHORT_DESC="Library for parsing command line options."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://directory.fsf.org/project/popt/"
11 WGET_URL="http://rpm5.org/files/popt/$TARBALL"
12 HOST_ARCH="i486 arm"
14 current_version()
15 {
16 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
17 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure $CONFIGURE_ARGS &&
24 make && make install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/lib
31 cp -a $install/usr/lib/*.so* $fs/usr/lib
32 }