wok view wimlib/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | 0ba37e865e61 |
children | 72f2704d3ae0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wimlib"
4 VERSION="1.13.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Library to create, extract, and modify Windows Imaging (WIM) files."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://wimlib.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}downloads/$TARBALL"
14 DEPENDS="cabextract cdrkit fuse libcrypto libxml2 mtools ntfs-3g
15 syslinux zlib"
16 BUILD_DEPENDS="attr-dev cabextract cdrkit fuse-dev libxml2-dev mtools
17 ntfs-3g-dev openssl-dev pkg-config syslinux"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure --prefix=/usr $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/usr $fs
38 }