wok view dislocker/receipt @ rev 25128
updated cgdb (0.7.1 -> 0.8.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 28 17:15:25 2022 +0100 (2022-06-28) |
parents | 0beaafd8d345 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="dislocker"
4 VERSION="0.7.3"
5 CATEGORY="system-tools"
6 SHORT_DESC="Read and 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="fuse2 mbedtls"
15 BUILD_DEPENDS="attr cmake fuse2-dev mbedtls-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 compile_rules()
24 {
25 # Fix v0.7 upstream path error
26 # obsolete in 0.7.3
27 # sed -i 's|DIS_MAN \${PROJECT_SOURCE_DIR}|DIS_MAN ..|' src/CMakeLists.txt
29 cp $stuff/manpage/* man/linux/
31 patch --strip=1 --input=$stuff/fix-spelling.patch
33 mkdir _build &&
34 cd _build &&
35 cmake .. \
36 -D CMAKE_INSTALL_PREFIX=/usr \
37 -D libdir=/usr/lib \
38 -D WARN_FLAGS:STRING="-Wall -Wextra" &&
39 make &&
40 make install DESTDIR=$install || return 1
42 cd $src
43 mkdir -p $install/usr/share/doc/$PACKAGE-$VERSION
44 cp CHANGELOG.md $install/usr/share/doc/$PACKAGE-$VERSION/
45 cp README.md $install/usr/share/doc/$PACKAGE-$VERSION/
47 mkdir -p $install/usr/share/man/man1
48 cp man/linux/dislocker-bek.1 $install/usr/share/man/man1/
49 cp man/linux/dislocker-metadata.1 $install/usr/share/man/man1/
50 }
52 genpkg_rules()
53 {
54 cook_copy_folders bin
55 cook_copy_folders lib
56 }