wok view compface/receipt @ rev 24436
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 13:09:42 2022 +0000 (2022-02-13) |
parents | d805d3de4546 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="compface"
4 VERSION="1.5.2"
5 CATEGORY="utilities"
6 SHORT_DESC="Utils & libs to convert from/to X-Face format"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="http://freecode.com/projects/compface"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://ftp.xemacs.org/pub/xemacs/aux/$TARBALL"
13 DEPENDS="glibc-base"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
19 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 patch < $stuff/makefile-use-destdir.patch &&
26 ./configure $CONFIGURE_ARGS &&
27 make &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a $install/usr/bin $fs/usr
36 }