wok-current view blktrace/receipt @ rev 24497
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 14:19:02 2022 +0000 (2022-02-19) |
parents | bbb9e95382aa |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="blktrace"
4 VERSION="1.3.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Block layer IO tracing."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://brick.kernel.dk/snaps"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 DEPENDS="libaio"
15 BUILD_DEPENDS="libaio-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;/git/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 make install \
28 prefix=/usr \
29 DESTDIR=$DESTDIR
31 # mkdir -p $install/usr/share
32 # mv $install/usr/man $install/usr/share
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_folders bin
39 }