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