wok-6.x annotate azpainter/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 06698973c2dd
children 2d5e684a8df9
rev   line source
pascal@19948 1 # SliTaz package receipt.
pascal@19948 2
pascal@19948 3 PACKAGE="azpainter"
Hans-G?nter@22524 4 VERSION="2.1.5"
pascal@19948 5 CATEGORY="graphics"
pascal@19948 6 SHORT_DESC="Full color painting software for illustration drawing."
pascal@19948 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19948 8 LICENSE="GPL3 BSD"
pascal@19948 9 WEB_SITE="https://osdn.net/projects/azpainter/"
Hans-G?nter@20734 10
Hans-G?nter@22524 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22524 12 WGET_URL="https://github.com/Symbian9/$PACKAGE/archive/v$VERSION/$TARBALL"
pascal@19948 13
Hans-G?nter@22524 14 DEPENDS="fontconfig freetype libjpeg-turbo libpng xorg-libX11
Hans-G?nter@22524 15 xorg-libXext xorg-libXi"
Hans-G?nter@22524 16 BUILD_DEPENDS="fontconfig-dev freetype-dev libjpeg-turbo-dev
Hans-G?nter@22524 17 libpng-dev xorg-dev zlib-dev"
pascal@19948 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
pascal@19948 25 # Rules to configure and make the package.
pascal@19948 26 compile_rules()
pascal@19948 27 {
Hans-G?nter@22524 28 ./configure \
Hans-G?nter@22524 29 --prefix=/usr \
Hans-G?nter@20734 30 $CONFIGURE_ARGS &&
pascal@19948 31 make &&
pascal@19948 32 make DESTDIR=$DESTDIR install-strip
pascal@19948 33 }
pascal@19948 34
pascal@19948 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19948 36 genpkg_rules()
pascal@19948 37 {
pascal@19948 38 cp -a $install/usr $fs
pascal@19948 39 }