wok-6.x annotate dislocker/receipt @ rev 23626
created recipe for ruby-native-package-installer
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 07:59:09 2020 +0100 (2020-04-16) |
parents | |
children | 5ea0ce1cecc0 |
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 |
al@20516 | 17 compile_rules() { |
al@20516 | 18 # Fix v0.7 upstream path error |
al@20516 | 19 sed -i 's/DIS_MAN \${PROJECT_SOURCE_DIR}/DIS_MAN ../' src/CMakeLists.txt |
al@20516 | 20 |
al@20516 | 21 cp $stuff/manpage/* man/linux/ |
al@20516 | 22 |
al@20516 | 23 patch -p1 -i $stuff/fix-spelling.patch |
al@20516 | 24 |
al@20516 | 25 cmake \ |
al@20516 | 26 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@20516 | 27 -Dlibdir=/usr/lib \ |
al@20516 | 28 -D WARN_FLAGS:STRING="-Wall -Wextra" \ |
al@20516 | 29 . && |
al@20516 | 30 make && |
al@20516 | 31 make DESTDIR=$install install || return 1 |
al@20516 | 32 |
al@20516 | 33 mkdir -p $install/usr/share/doc/$PACKAGE-$VERSION/ |
al@20516 | 34 cp README.md CHANGELOG.md $install/usr/share/doc/$PACKAGE-$VERSION/ |
al@20516 | 35 |
al@20516 | 36 mkdir -p $install/usr/share/man/man1/ |
al@20516 | 37 cp man/linux/dislocker-bek.1 man/linux/dislocker-metadata.1 \ |
al@20516 | 38 $install/usr/share/man/man1/ |
al@20516 | 39 } |
al@20516 | 40 |
al@20516 | 41 genpkg_rules() { |
al@20516 | 42 mkdir -p $fs/usr/ |
al@20516 | 43 cp -a $install/usr/bin/ $install/usr/lib/ $fs/usr/ |
al@20516 | 44 } |