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