wok-current view cryptsetup/receipt @ rev 25710
Build full mesa features and split it
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jun 10 19:04:54 2024 +0000 (5 months ago) |
parents | fb31b4bd68b8 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="cryptsetup"
4 VERSION="2.3.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="dm-crypt setup tool for encryption of block devices."
7 MAINTAINER="b1+slitaz@nagel.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://gitlab.com/$PACKAGE/$PACKAGE"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/linux/utils/$PACKAGE/v${VERSION%.*}/$TARBALL"
14 DEPENDS="e2fsprogs libdevmapper libgcrypt libjson-c openssl popt"
15 BUILD_DEPENDS="e2fsprogs-dev libdevmapper-dev libgcrypt-dev
16 libjson-c-dev openssl-dev popt-dev util-linux-blkid-dev
17 util-linux-uuid-dev"
19 current_version()
20 {
21 local base=$(wget -O - ${WGET_URL%/v*} 2>/dev/null | \
22 sed '/href/!d;s|.*href="\(.*\)".*|\1|' | tail -n 1)
23 wget -O - ${WGET_URL%/v*}/$base 2>/dev/null | sed \
24 "/href/!d;/z/!d;s|.*href=\"$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | \
25 tail -n1
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --prefix=/usr \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
43 cp -a $install/usr/sbin $fs/usr
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 }