wok-current view libspectre/receipt @ rev 24447
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 17:51:14 2022 +0000 (2022-02-14) |
parents | 8609b5c4b762 |
children | c68e84a80970 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libspectre"
4 VERSION="0.2.7"
5 CATEGORY="office"
6 SHORT_DESC="libspectre is a small library for rendering Postscript documents"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.freedesktop.org/wiki/Software/libspectre"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://libspectre.freedesktop.org/releases/$TARBALL"
13 DEPENDS="ghostscript"
14 BUILD_DEPENDS="ghostscript-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure $CONFIGURE_ARGS && make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib
33 cp -a $install/usr/lib/*.so* $fs/usr/lib
34 }