wok annotate dislocker/receipt @ rev 24279
taziso: rework usbbootkey
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 10 14:18:26 2022 +0000 (2022-01-10) |
parents | 3ed4ba0fc8db |
children | ac8ca9758df1 |
rev | line source |
---|---|
al@20516 | 1 # SliTaz package receipt. |
al@20516 | 2 |
al@20516 | 3 PACKAGE="dislocker" |
al@20516 | 4 VERSION="0.7.1" |
al@20516 | 5 CATEGORY="system-tools" |
al@20516 | 6 SHORT_DESC="Read/write BitLocker encrypted volumes under Linux" |
al@20516 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@20516 | 8 LICENSE="GPL2" |
al@20516 | 9 WEB_SITE="https://github.com/Aorimn/dislocker" |
al@20516 | 10 |
al@20516 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20516 | 12 WGET_URL="https://github.com/Aorimn/dislocker/archive/v$VERSION.tar.gz" |
al@20516 | 13 |
al@20516 | 14 DEPENDS="fuse mbedtls" |
al@20516 | 15 BUILD_DEPENDS="cmake mbedtls-dev fuse-dev patch attr" |
al@20516 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
al@20516 | 23 compile_rules() { |
al@20516 | 24 # Fix v0.7 upstream path error |
al@20516 | 25 sed -i 's/DIS_MAN \${PROJECT_SOURCE_DIR}/DIS_MAN ../' src/CMakeLists.txt |
al@20516 | 26 |
al@20516 | 27 cp $stuff/manpage/* man/linux/ |
al@20516 | 28 |
al@20516 | 29 patch -p1 -i $stuff/fix-spelling.patch |
al@20516 | 30 |
al@20516 | 31 cmake \ |
al@20516 | 32 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@20516 | 33 -Dlibdir=/usr/lib \ |
al@20516 | 34 -D WARN_FLAGS:STRING="-Wall -Wextra" \ |
al@20516 | 35 . && |
al@20516 | 36 make && |
al@20516 | 37 make DESTDIR=$install install || return 1 |
al@20516 | 38 |
al@20516 | 39 mkdir -p $install/usr/share/doc/$PACKAGE-$VERSION/ |
al@20516 | 40 cp README.md CHANGELOG.md $install/usr/share/doc/$PACKAGE-$VERSION/ |
al@20516 | 41 |
al@20516 | 42 mkdir -p $install/usr/share/man/man1/ |
al@20516 | 43 cp man/linux/dislocker-bek.1 man/linux/dislocker-metadata.1 \ |
al@20516 | 44 $install/usr/share/man/man1/ |
al@20516 | 45 } |
al@20516 | 46 |
al@20516 | 47 genpkg_rules() { |
al@20516 | 48 mkdir -p $fs/usr/ |
al@20516 | 49 cp -a $install/usr/bin/ $install/usr/lib/ $fs/usr/ |
al@20516 | 50 } |