wok-6.x view proot/receipt @ rev 24403
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 18:20:23 2022 +0000 (2022-02-08) |
parents | cb3f10eaf9f6 |
children | 98ece8cc8707 |
line source
1 # SliTaz package receipt.
3 PACKAGE="proot"
4 VERSION="5.1.0"
5 CATEGORY="misc"
6 SHORT_DESC="User-space implementation of chroot, mount --bind, and binfmt_misc.."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://proot-me.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/proot-me/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="talloc"
15 BUILD_DEPENDS="talloc-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/src
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin
34 cp -a $src/src/proot $fs/usr/bin
35 }