wok annotate pangox-compat/receipt @ rev 24111

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 17:26:43 2021 +0000 (2021-09-28)
parents 86790a278e70
children
rev   line source
yuripourre@16905 1 # SliTaz package receipt.
yuripourre@16905 2
yuripourre@16905 3 PACKAGE="pangox-compat"
yuripourre@16905 4 VERSION="0.0.2"
yuripourre@16905 5 CATEGORY="x-window"
al@16906 6 SHORT_DESC="X Window System font support for Pango"
yuripourre@16905 7 MAINTAINER="yuripourre@gmail.com"
al@16906 8 LICENSE="LGPL2"
pascal@20421 9 WEB_SITE="https://www.gnome.org/"
yuripourre@16905 10 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@16906 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
yuripourre@16905 12
al@16906 13 DEPENDS="glib glibc-base libffi pango pcre xorg-libX11"
al@16906 14 BUILD_DEPENDS="pango-dev glib-dev xorg-libX11-dev"
yuripourre@16905 15
pascal@24111 16 current_version()
pascal@24111 17 {
pascal@24111 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 20 }
pascal@24111 21
yuripourre@16905 22 # Rules to configure and make the package.
yuripourre@16905 23 compile_rules()
yuripourre@16905 24 {
yuripourre@16905 25 ./configure \
yuripourre@16905 26 --prefix=/usr \
al@16906 27 --sysconfdir=/etc \
yuripourre@16905 28 $CONFIGURE_ARGS &&
yuripourre@16905 29 make &&
al@16906 30 make install
yuripourre@16905 31 }
yuripourre@16905 32
yuripourre@16905 33 genpkg_rules()
yuripourre@16905 34 {
al@16906 35 mkdir -p $fs/usr/lib
al@16906 36 cp -a $install/etc $fs
al@16906 37 cp -a $install/usr/lib/*.so* $fs/usr/lib
yuripourre@16905 38 }