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