wok-6.x annotate libpaper/receipt @ rev 24419

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 11 11:14:46 2022 +0000 (2022-02-11)
parents 8326b3115047
children
rev   line source
pankso@12728 1 # SliTaz package receipt.
pankso@12728 2
pankso@12728 3 PACKAGE="libpaper"
Hans-G?nter@23092 4 VERSION="1.1.28"
pankso@12728 5 CATEGORY="system-tools"
pankso@12728 6 SHORT_DESC="Library for handling paper characteristics."
pankso@12728 7 MAINTAINER="pankso@slitaz.org"
pascal@14716 8 LICENSE="GPL2"
Hans-G?nter@23092 9 WEB_SITE="https://packages.debian.org/unstable/source/libpaper"
Hans-G?nter@23092 10
pascal@23096 11 TARBALL="${PACKAGE}_$VERSION.tar.gz"
pankso@12728 12 WGET_URL="http://ftp.de.debian.org/debian/pool/main/libp/libpaper/$TARBALL"
Hans-G?nter@23092 13
Hans-G?nter@23092 14 BUILD_DEPENDS="autoconf automake libtool"
Hans-G?nter@23092 15
pankso@16312 16 HOST_ARCH="i486 arm"
pankso@12728 17
pascal@24419 18 # What is the latest version available today?
pascal@24419 19 current_version()
pascal@24419 20 {
pascal@24419 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24419 22 sed "/latest/d;/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24419 23 }
pascal@24419 24
pankso@12728 25 # Rules to configure and make the package.
pankso@12728 26 compile_rules()
pankso@12728 27 {
Hans-G?nter@23092 28 autoreconf -vfi &&
pankso@12728 29 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@23092 30 make &&
Hans-G?nter@23092 31 make install
pankso@12728 32 }
pankso@12728 33
pankso@12728 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12728 35 genpkg_rules()
pankso@12728 36 {
pankso@12728 37 mkdir -p $fs/usr/lib
Hans-G?nter@23092 38
Hans-G?nter@23092 39 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23092 40 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@23092 41 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@12728 42 }