wok-current view jbigkit/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago) |
parents | 83b97236db32 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="jbigkit"
4 VERSION="2.1"
5 CATEGORY="development"
6 SHORT_DESC="Highly effective data compression algorithm for bi-level high-resolution images."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.cl.cam.ac.uk/~mgk25/jbigkit/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}download/$TARBALL"
14 HOST_ARCH="i486 arm x86_64"
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-/!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 # For x86_64, need ensure build with -fPIC
27 case $ARCH in
28 x86_64)
29 CFLAGS="$CFLAGS -fPIC" ;;
30 esac
32 make CC=${HOST_SYSTEM}-gcc CFLAGS="$CFLAGS"
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib $fs/usr/include
40 cp -a $src/libjbig/*.h $fs/usr/include
41 cp -a $src/libjbig/*.a $fs/usr/lib
42 }