wok view libqcow/receipt @ rev 24476
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 09:29:30 2022 +0000 (2022-02-18) |
parents | 6ab151d44024 |
children | 72f2704d3ae0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libqcow"
4 VERSION="20181227"
5 CATEGORY="misc"
6 SHORT_DESC="Tools for reading QEMU Copy-On-Write (QCOW) image files."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL3"
9 WEB_SITE="https://github.com/libyal/libqcow"
11 TARBALL="$PACKAGE-alpha-$VERSION.tar.gz"
12 WGET_URL="https://github.com/libyal/$PACKAGE/releases/download/$VERSION/$TARBALL"
14 DEPENDS="fuse libcrypto"
15 BUILD_DEPENDS="fuse-dev openssl-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix=/usr \
28 --mandir=/usr/share/man \
29 --localstatedir=/var \
30 $CONFIGURE_ARGS &&
31 make -j 1 &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 }