wok-current annotate e4rat/receipt @ rev 24082
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 09 18:20:09 2021 +0000 (2021-07-09) |
parents | 8dcf607135e8 |
children | 999b2a415099 |
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@13591 | 9 TARBALL="${PACKAGE}_${VERSION}_src.tar.gz" |
pascal@13591 | 10 WEB_SITE="http://e4rat.sourceforge.net/" |
pascal@13591 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@13591 | 12 |
pascal@13591 | 13 DEPENDS="e2fsprogs" |
pascal@13591 | 14 BUILD_DEPENDS="cmake e2fsprogs-dev libboost-system-dev libboost-filesystem-dev \ |
pascal@13591 | 15 libboost-regex-dev libboost-signals-dev libboost-serialization-dev audit-dev perl" |
pascal@13591 | 16 |
pascal@24082 | 17 current_version() |
pascal@24082 | 18 { |
pascal@24082 | 19 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ |
pascal@24082 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24082 | 21 sed "/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).src.*\".*|\\1|;q" |
pascal@24082 | 22 } |
pascal@24082 | 23 |
pascal@13591 | 24 # Rules to configure and make the package. |
pascal@13591 | 25 compile_rules() |
pascal@13591 | 26 { |
pascal@19800 | 27 export LDFLAGS="$LDFLAGS -lcom_err" |
pascal@13591 | 28 patch -p0 < $stuff/e4rat-boost.u |
pascal@13591 | 29 cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr . && |
pascal@13591 | 30 make && make install |
pascal@13591 | 31 } |
pascal@13591 | 32 |
al@18534 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18534 | 34 genpkg_rules() |
pascal@13591 | 35 { |
al@18534 | 36 mkdir -p $fs/usr |
pascal@13591 | 37 cp -a $install/etc $fs |
pascal@13591 | 38 cp -a $install/var $fs |
pascal@13591 | 39 cp -a $install/usr/sbin $fs/usr |
pascal@13591 | 40 cp -a $install/usr/lib $fs/usr |
pascal@13591 | 41 } |