wok annotate pinta/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 | e54ac42d7a86 |
children | 0262035dc1e7 |
rev | line source |
---|---|
al@19502 | 1 # SliTaz package receipt. |
al@19502 | 2 |
al@19502 | 3 PACKAGE="pinta" |
al@19502 | 4 VERSION="1.6" |
al@19502 | 5 CATEGORY="graphics" |
al@19502 | 6 SHORT_DESC="Free, open source program for drawing and image editing" |
al@19502 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19502 | 8 LICENSE="MIT" |
al@19502 | 9 WEB_SITE="https://pinta-project.com/" |
al@19502 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19502 | 11 WGET_URL="https://github.com/PintaProject/Pinta/archive/$VERSION.tar.gz" |
al@19502 | 12 COOKOPTS="!pixmaps" |
al@19502 | 13 |
al@19502 | 14 DEPENDS="mono gtk-sharp" |
al@19502 | 15 BUILD_DEPENDS="automake mono-dev gtk-sharp-dev" |
al@19502 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
al@19502 | 23 # Rules to configure and make the package. |
al@19502 | 24 compile_rules() |
al@19502 | 25 { |
al@19502 | 26 ./autogen.sh |
al@19502 | 27 make && make install |
al@19502 | 28 } |
al@19502 | 29 |
al@19502 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19502 | 31 genpkg_rules() |
al@19502 | 32 { |
al@19502 | 33 cook_copy_files pinta *.dll *.exe *.mo |
al@19502 | 34 cook_copy_icons 16 32 # 48 is absent |
al@19502 | 35 } |