wok view libexif/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 0b02213fe0a1 |
children | f8a963794d31 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libexif"
4 VERSION="0.6.22"
5 CATEGORY="system-tools"
6 SHORT_DESC="Reads and writes EXIF metainformation from and to image files."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://libexif.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$PACKAGE-${VERSION//./_}-release/$TARBALL"
14 HOST_ARCH="i486 arm"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/libexif-\(.*\)-release.*|\1|;s|_|.|g;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ln -s /bin/sh /usr/bin/sh
26 ./configure \
27 --prefix=/usr \
28 $CONFIGURE_ARGS &&
29 make -j 1 &&
30 make DESTDIR=$DESTDIR install
31 rm /usr/bin/sh
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/lib/*.so* $fs/usr/lib
39 }