wok-current view dislocker/receipt @ rev 24225
updated perl-io-socket-ssl (2.068 -> 2.073)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 17:41:39 2021 +0100 (2021-12-31) |
parents | 3ed4ba0fc8db |
children | ac8ca9758df1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dislocker"
4 VERSION="0.7.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Read/write BitLocker encrypted volumes under Linux"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/Aorimn/dislocker"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/Aorimn/dislocker/archive/v$VERSION.tar.gz"
14 DEPENDS="fuse mbedtls"
15 BUILD_DEPENDS="cmake mbedtls-dev fuse-dev patch attr"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 compile_rules() {
24 # Fix v0.7 upstream path error
25 sed -i 's/DIS_MAN \${PROJECT_SOURCE_DIR}/DIS_MAN ../' src/CMakeLists.txt
27 cp $stuff/manpage/* man/linux/
29 patch -p1 -i $stuff/fix-spelling.patch
31 cmake \
32 -DCMAKE_INSTALL_PREFIX=/usr \
33 -Dlibdir=/usr/lib \
34 -D WARN_FLAGS:STRING="-Wall -Wextra" \
35 . &&
36 make &&
37 make DESTDIR=$install install || return 1
39 mkdir -p $install/usr/share/doc/$PACKAGE-$VERSION/
40 cp README.md CHANGELOG.md $install/usr/share/doc/$PACKAGE-$VERSION/
42 mkdir -p $install/usr/share/man/man1/
43 cp man/linux/dislocker-bek.1 man/linux/dislocker-metadata.1 \
44 $install/usr/share/man/man1/
45 }
47 genpkg_rules() {
48 mkdir -p $fs/usr/
49 cp -a $install/usr/bin/ $install/usr/lib/ $fs/usr/
50 }