wok-current annotate pdf2djvu/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 | 1522926ec4fb |
children |
rev | line source |
---|---|
psychomaniak@19525 | 1 # SliTaz package receipt. |
psychomaniak@19525 | 2 |
psychomaniak@19525 | 3 PACKAGE="pdf2djvu" |
Hans-G?nter@23285 | 4 VERSION="0.9.17" |
psychomaniak@19525 | 5 CATEGORY="graphics" |
Hans-G?nter@21671 | 6 TAGS="pdf djvu" |
Hans-G?nter@21671 | 7 SHORT_DESC="Creates DjVu files from PDF files." |
Hans-G?nter@21671 | 8 MAINTAINER="psychomaniak@xakep.ru" |
psychomaniak@19525 | 9 LICENSE="GPL2" |
Hans-G?nter@21671 | 10 WEB_SITE="http://jwilk.net/software/pdf2djvu" |
Hans-G?nter@21671 | 11 |
psychomaniak@19525 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@21671 | 13 WGET_URL="https://github.com/jwilk/$PACKAGE/releases/download/$VERSION/$TARBALL" |
psychomaniak@19525 | 14 |
psychomaniak@19525 | 15 DEPENDS="djvulibre poppler" |
Hans-G?nter@21671 | 16 BUILD_DEPENDS="cacerts djvulibre-dev poppler-dev" #exiv2 |
psychomaniak@19525 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
psychomaniak@19525 | 24 # Rules to configure and make the package. |
psychomaniak@19525 | 25 compile_rules() |
psychomaniak@19525 | 26 { |
Hans-G?nter@21671 | 27 ./configure && |
Hans-G?nter@21671 | 28 make && |
Hans-G?nter@21671 | 29 make install |
psychomaniak@19525 | 30 } |
psychomaniak@19525 | 31 |
psychomaniak@19525 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@19525 | 33 genpkg_rules() |
psychomaniak@19525 | 34 { |
Hans-G?nter@23285 | 35 cp -a $install/* $fs |
psychomaniak@19525 | 36 } |