wok-current view quazip/receipt @ rev 24425
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 11 17:50:36 2022 +0000 (2022-02-11) |
parents | ef3a79e3c3a4 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="quazip"
4 VERSION="0.8.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Qt/C++ wrapper for ZIP/UNZIP package."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/stachenov/quazip"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="qmake Qt4-dev zlib-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src/quazip
27 qmake PREFIX=$DESTDIR/usr &&
28 make &&
29 make staticlib &&
30 make install &&
31 install -m 0644 libquazip.a $DESTDIR/usr/lib &&
32 install -D -m 0644 ../FindQuaZip.cmake \
33 $DESTDIR/usr/share/apps/cmake/modules/FindQuaZip.cmake
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 }