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