wok view libimobiledevice/receipt @ rev 24083

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 10 11:40:16 2021 +0000 (2021-07-10)
parents 05c8d8d9d934
children 22471cbea549
line source
1 # SliTaz package receipt.
3 PACKAGE="libimobiledevice"
4 VERSION="1.1.1"
5 CATEGORY="misc"
6 SHORT_DESC="Is a software library that talks the protocols to support iPhone and iPod Touch devices on Linux"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://libimobiledevice.org"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="$WEB_SITE/downloads/$TARBALL"
13 DEPENDS="gnutls glib libplist usbmuxd"
14 BUILD_DEPENDS="gnutls-dev glib-dev libplist-dev usbmuxd-dev python-dev swig \
15 libgnutls"
17 current_version()
18 {
19 wget -O - https://github.com/libimobiledevice/libimobiledevice 2>/dev/null | \
20 sed '/releases.tag/!d;s|.*/tag.v*\(.*\)".*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 patch -Np1 -i $stuff/swig-version-check.patch
27 ./configure \
28 $CONFIGURE_ARGS &&
29 make &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 cp -a $install/usr/lib/python* $fs/usr/lib
40 }