wok-6.x view aufs-utils/receipt @ rev 24373

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 05 16:12:08 2022 +0000 (2022-02-05)
parents c4e857aec2bd
children 7dd01dedad38
line source
1 # SliTaz package receipt.
3 PACKAGE="aufs-utils"
4 VERSION="20150122"
5 CATEGORY="system-tools"
6 SHORT_DESC="The aufs utils."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://aufs.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="git|git://aufs.git.sourceforge.net/gitroot/aufs/aufs-util.git"
12 BRANCH="origin/aufs3.14"
14 DEPENDS="aufs"
15 BUILD_DEPENDS="git linux-module-headers aufs"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/p/aufs/aufs-util/ci/${BRANCH#*/}/tree/ 2>/dev/null | \
21 sed '/^ *20[0-9-]*$/!d;s|-||g;s| *||' | sort -r | uniq | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 KERNEL_VERSION=$(. $WOK/linux/receipt; echo $VERSION)
28 //sed -i 's|.*AUFS_XINO_TRUNC_|// &|' c2tmac.c
29 sed -i 's/-m 644 -T/-m 644/' Makefile
31 make &&
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
39 cp -a $install/sbin $fs
40 cp -a $install/usr/bin $fs/usr
41 }