wok-6.x view libplist/receipt @ rev 24699
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 19:47:29 2022 +0000 (2022-03-13) |
parents | 5b048e7c08a2 |
children | 99e24ccafc52 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libplist"
4 VERSION="2.0.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="A library to handle Apple Property List format whereas it's binary or XML"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://libimobiledevice.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://www.libimobiledevice.org/downloads/$TARBALL"
14 DEPENDS="glib libxml2"
15 #BUILD_DEPENDS="glib-dev libxml2-dev cmake swig python python-dev "
16 BUILD_DEPENDS="file glib-dev libxml2-dev python python-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/libimobiledevice/libplist/tags 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # cd $src
29 # mkdir build
30 # cd build
31 # cmake ../ -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr
32 ./configure &&
33 make -j 1 &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
42 cp -a $install/usr/lib/*.so* $fs/usr/lib/
43 # cp -a $install/usr/lib/python* $fs/usr/lib
44 cp -a $install/usr/bin $fs/usr
45 }