wok view e4rat/receipt @ rev 25503
f3: include extra programs
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 27 10:37:43 2023 +0100 (21 months ago) |
parents | 7dd01dedad38 |
children | 6b33f9da53d4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="e4rat"
4 VERSION="0.2.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Ext4 - Reducing Access Times: Improve Startup Times."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://e4rat.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 WGET_URL="https://sourceforge.net/projects/$PACKAGE/files/$VERSION/${PACKAGE}_${VERSION}_src.tar.gz"
15 DEPENDS="e2fsprogs"
16 BUILD_DEPENDS="audit-dev cmake e2fsprogs-dev libboost-filesystem-dev
17 libboost-regex-dev libboost-serialization-dev libboost-signals-dev
18 libboost-system-dev perl"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
25 sed "/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).src.*\".*|\\1|;q"
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 export LDFLAGS="$LDFLAGS -lcom_err"
32 patch -p0 < $stuff/e4rat-boost.u
34 mkdir _build &&
35 cd _build &&
36 cmake .. \
37 -D CMAKE_BUILD_TYPE=release \
38 -D CMAKE_INSTALL_PREFIX=/usr &&
39 make &&
40 make install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
48 cp -a $install/etc $fs
49 cp -a $install/var $fs
50 cp -a $install/usr/sbin $fs/usr
51 cp -a $install/usr/lib $fs/usr
52 }