wok-current view jpegoptim/receipt @ rev 24133
Up tazinst (115)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 23 15:17:56 2021 +0000 (2021-10-23) |
parents | |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="jpegoptim"
4 VERSION="1.4.6"
5 CATEGORY="utilities"
6 SHORT_DESC="Utility to optimize/compress JPEG files."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/tjko/jpegoptim"
11 WGET_URL="$WEB_SITE/archive/refs/tags/RELEASE.$VERSION.tar.gz"
13 BUILD_DEPENDS="jpeg-dev"
14 DEPENDS="jpeg-dev"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/RELEASE.\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure --prefix=/usr --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a $install/usr/bin $fs/usr
36 }