wok-current view ijs/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | d1cd4ce1c286 |
children | 73f36875e5a7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ijs"
4 VERSION="0.35"
5 CATEGORY="office"
6 SHORT_DESC="IJS API function"
7 MAINTAINER="mojo@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://openprinting.org"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://www.openprinting.org/download/ijs/download/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS="wget"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix=/usr \
28 --mandir=/usr/share/man \
29 --enable-shared \
30 --disable-static \
31 $CONFIGURE_ARGS && make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 }