wok annotate libspectre/receipt @ rev 25591
enet: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 22 11:01:59 2023 +0000 (14 months ago) |
parents | ede1d184d5c5 |
children |
rev | line source |
---|---|
al@16625 | 1 # SliTaz package receipt. |
al@16625 | 2 |
al@16625 | 3 PACKAGE="libspectre" |
Hans-G?nter@24785 | 4 VERSION="0.2.9" |
al@16625 | 5 CATEGORY="office" |
Hans-G?nter@24785 | 6 SHORT_DESC="A small library for rendering Postscript documents." |
al@16625 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@16625 | 8 LICENSE="GPL2" |
Hans-G?nter@24785 | 9 WEB_SITE="https://www.freedesktop.org/wiki/Software/libspectre" |
Hans-G?nter@24785 | 10 |
al@16625 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24785 | 12 WGET_URL="https://libspectre.freedesktop.org/releases/$TARBALL" |
al@16625 | 13 |
al@16625 | 14 DEPENDS="ghostscript" |
al@16625 | 15 BUILD_DEPENDS="ghostscript-dev" |
al@16625 | 16 |
pascal@24447 | 17 # What is the latest version available today? |
pascal@24447 | 18 current_version() |
pascal@24447 | 19 { |
pascal@24447 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 22 } |
pascal@24447 | 23 |
al@16625 | 24 # Rules to configure and make the package. |
al@16625 | 25 compile_rules() |
al@16625 | 26 { |
Hans-G?nter@24785 | 27 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@24785 | 28 make && |
Hans-G?nter@24785 | 29 make install |
al@16625 | 30 } |
al@16625 | 31 |
al@16625 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16625 | 33 genpkg_rules() |
al@16625 | 34 { |
Hans-G?nter@24785 | 35 cook_copy_files *.so* |
al@16625 | 36 } |