wok annotate ecryptfs-simple/receipt @ rev 24076

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 08 13:19:25 2021 +0000 (2021-07-08)
parents 60a61a9abccd
children 095836df71b7
rev   line source
pascal@20636 1 # SliTaz package receipt.
pascal@20636 2
pascal@20636 3 PACKAGE="ecryptfs-simple"
pascal@20636 4 VERSION="2017"
pascal@20636 5 CATEGORY="security"
pascal@20636 6 SHORT_DESC="A very simple utility for working with eCryptfs"
pascal@20636 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20636 8 LICENSE="GPL2"
pascal@20636 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@20636 10 WEB_SITE="https://xyne.archlinux.ca/projects/ecryptfs-simple/"
pascal@20636 11 WGET_URL="${WEB_SITE}src/$TARBALL"
pascal@20636 12 TAGS="cryptography"
pascal@20636 13
pascal@20636 14 DEPENDS="libgcrypt ecryptfs-utils util-linux-mount libgpg-error \
pascal@20636 15 util-linux-blkid util-linux-uuid"
pascal@20636 16 BUILD_DEPENDS="cmake libgcrypt-dev pkg-config \
pascal@20636 17 ecryptfs-utils-dev util-linux-mount-dev keyutils-dev"
pascal@20636 18
pascal@24076 19 current_version()
pascal@24076 20 {
pascal@24076 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24076 22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24076 23 }
pascal@24076 24
pascal@20636 25 # Rules to configure and make the package.
pascal@20636 26 compile_rules()
pascal@20636 27 {
pascal@20636 28 cmake -DCMAKE_INSTALL_PREFIX=/usr . &&
pascal@20636 29 make &&
pascal@20636 30 make DESTDIR=$DESTDIR install
pascal@20636 31 }
pascal@20636 32
pascal@20636 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20636 34 genpkg_rules()
pascal@20636 35 {
pascal@20636 36 cp -a $install/usr $fs
pascal@20636 37 }