wok view e4rat/receipt @ rev 25457

Normazile https://sourceforge.net/projects web_sites
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 23 08:28:09 2022 +0000 (19 months ago)
parents 4bae0fb81a17
children 7dd01dedad38
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="http://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 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed "/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).src.*\".*|\\1|;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export LDFLAGS="$LDFLAGS -lcom_err"
31 patch -p0 < $stuff/e4rat-boost.u
33 mkdir _build &&
34 cd _build &&
35 cmake .. \
36 -D CMAKE_BUILD_TYPE=release \
37 -D CMAKE_INSTALL_PREFIX=/usr &&
38 make &&
39 make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
47 cp -a $install/etc $fs
48 cp -a $install/var $fs
49 cp -a $install/usr/sbin $fs/usr
50 cp -a $install/usr/lib $fs/usr
51 }