wok view jpeg/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 038e3e646808
children 9a3f3ff0d575
line source
1 # SliTaz package receipt.
3 PACKAGE="jpeg"
4 VERSION="9d"
5 CATEGORY="x-window"
6 TAGS="jpeg jpg"
7 SHORT_DESC="JPEG image programs."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="MIT"
10 WEB_SITE="https://www.ijg.org/"
12 TARBALL="jpegsrc.v${VERSION}.tar.gz"
13 WGET_URL="http://www.ijg.org/files/$TARBALL"
15 DEPENDS="libjpeg"
17 HOST_ARCH="i486 arm"
19 # @maintainers: Please update also: jpeg-dev and libjpeg
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | \
24 sed '/tar.gz"/!d;s|.*src.v\(.*\).tar.*".*|\1|'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --enable-shared \
32 --prefix=/usr \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
45 # In libjpeg package
46 #cp -a $install/usr/lib/*.so* $fs/usr/lib
47 }