wok-current annotate jp2a/receipt @ rev 24303
linux64-aufs: fix git branch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 15 16:48:52 2022 +0000 (2022-01-15) |
parents | 49cec93cc0b7 |
children | 8405a310d36a |
rev | line source |
---|---|
pascal@17526 | 1 # SliTaz package receipt. |
pascal@17526 | 2 |
pascal@17526 | 3 PACKAGE="jp2a" |
pascal@22926 | 4 VERSION="1.0.9" |
pascal@17526 | 5 CATEGORY="graphics" |
pascal@17526 | 6 SHORT_DESC="Converts JPG images to ASCII." |
pascal@17526 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17526 | 8 LICENSE="GPL2" |
pascal@22926 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@22926 | 10 WEB_SITE="https://github.com/Talinx/jp2a" |
pascal@22926 | 11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" |
pascal@17526 | 12 |
pascal@17526 | 13 DEPENDS="jpeg libcurl" |
pascal@22926 | 14 BUILD_DEPENDS="jpeg-dev curl-dev libtool" |
pascal@17526 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@17526 | 22 # Rules to configure and make the package. |
pascal@17526 | 23 compile_rules() |
pascal@17526 | 24 { |
pascal@22926 | 25 ./autogen.sh |
pascal@17526 | 26 ./configure --prefix=/usr \ |
pascal@17526 | 27 $CONFIGURE_ARGS && |
pascal@17526 | 28 make && |
pascal@17526 | 29 make DESTDIR=$DESTDIR install |
pascal@17526 | 30 } |
pascal@17526 | 31 |
pascal@17526 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17526 | 33 genpkg_rules() |
pascal@17526 | 34 { |
pascal@17526 | 35 mkdir -p $fs/usr |
pascal@17526 | 36 cp -a $install/usr/bin $fs/usr |
pascal@17526 | 37 } |