wok-current view dislocker/receipt @ rev 21921
Add pcem (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 05 17:33:56 2019 +0200 (2019-10-05) |
parents | |
children | 5ea0ce1cecc0 |
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 compile_rules() {
18 # Fix v0.7 upstream path error
19 sed -i 's/DIS_MAN \${PROJECT_SOURCE_DIR}/DIS_MAN ../' src/CMakeLists.txt
21 cp $stuff/manpage/* man/linux/
23 patch -p1 -i $stuff/fix-spelling.patch
25 cmake \
26 -DCMAKE_INSTALL_PREFIX=/usr \
27 -Dlibdir=/usr/lib \
28 -D WARN_FLAGS:STRING="-Wall -Wextra" \
29 . &&
30 make &&
31 make DESTDIR=$install install || return 1
33 mkdir -p $install/usr/share/doc/$PACKAGE-$VERSION/
34 cp README.md CHANGELOG.md $install/usr/share/doc/$PACKAGE-$VERSION/
36 mkdir -p $install/usr/share/man/man1/
37 cp man/linux/dislocker-bek.1 man/linux/dislocker-metadata.1 \
38 $install/usr/share/man/man1/
39 }
41 genpkg_rules() {
42 mkdir -p $fs/usr/
43 cp -a $install/usr/bin/ $install/usr/lib/ $fs/usr/
44 }