wok-6.x annotate gnustep-gui/receipt @ rev 24425

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 11 17:50:36 2022 +0000 (2022-02-11)
parents 952323d1e45e
children 77cf81161f50
rev   line source
pankso@4053 1 # SliTaz package receipt.
pankso@4053 2
pankso@4053 3 PACKAGE="gnustep-gui"
Hans-G?nter@22865 4 VERSION="0.27.0"
pankso@4053 5 CATEGORY="x-window"
pankso@4053 6 SHORT_DESC="GNUstep GUI class library."
pankso@4053 7 MAINTAINER="pankso@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@22865 9 WEB_SITE="http://www.gnustep.org/"
Hans-G?nter@22865 10
pankso@4053 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24425 12 WGET_URL="http://ftp.gnustep.org/pub/gnustep/core/$TARBALL"
pankso@4053 13
Hans-G?nter@22865 14 DEPENDS="audiofile aspell cups giflib gnustep-base jpeg libcomerr3
Hans-G?nter@22865 15 libpng libtasn1 portaudio tiff"
Hans-G?nter@22865 16 BUILD_DEPENDS="audiofile-dev aspell-dev cups-dev giflib-dev gnustep-base-dev
Hans-G?nter@22866 17 gnustep-make jpeg-dev libpng-dev libtasn1-dev portaudio-dev tar tiff-dev"
pankso@10009 18
pascal@24425 19 # What is the latest version available today?
pascal@24425 20 current_version()
pascal@24425 21 {
pascal@24425 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 24 }
pascal@24425 25
pankso@4053 26 # Rules to configure and make the package.
pankso@4053 27 compile_rules()
pankso@4053 28 {
Hans-G?nter@22865 29 ./configure \
Hans-G?nter@22865 30 --prefix=/usr \
pankso@4053 31 $CONFIGURE_ARGS &&
Hans-G?nter@22865 32 make &&
Hans-G?nter@22865 33 make DESTDIR=$DESTDIR install
pankso@4053 34 }
pankso@4053 35
pankso@4053 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4053 37 genpkg_rules()
pankso@4053 38 {
pankso@4053 39 mkdir -p $fs/usr/lib
Hans-G?nter@22865 40
Hans-G?nter@22865 41 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22865 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22865 43 cp -a $install/usr/lib/GNUstep $fs/usr/lib
Hans-G?nter@22865 44 }