wok-current annotate dislocker/receipt @ rev 25707

Fix miss file need for grub2-efi install (kernel.img, modinfo.sh)
author Stanislas Leduc <shann@slitaz.org>
date Thu May 30 20:14:23 2024 +0000 (5 months ago)
parents 0beaafd8d345
children
rev   line source
al@20516 1 # SliTaz package receipt.
al@20516 2
al@20516 3 PACKAGE="dislocker"
Hans-G?nter@24484 4 VERSION="0.7.3"
al@20516 5 CATEGORY="system-tools"
Hans-G?nter@24484 6 SHORT_DESC="Read and 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
pascal@24766 14 DEPENDS="fuse2 mbedtls"
pascal@24766 15 BUILD_DEPENDS="attr cmake fuse2-dev mbedtls-dev"
al@20516 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24299 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
Hans-G?nter@24484 23 compile_rules()
Hans-G?nter@24484 24 {
al@20516 25 # Fix v0.7 upstream path error
Hans-G?nter@24484 26 # obsolete in 0.7.3
Hans-G?nter@24484 27 # sed -i 's|DIS_MAN \${PROJECT_SOURCE_DIR}|DIS_MAN ..|' src/CMakeLists.txt
al@20516 28
Hans-G?nter@24484 29 cp $stuff/manpage/* man/linux/
al@20516 30
Hans-G?nter@24484 31 patch --strip=1 --input=$stuff/fix-spelling.patch
al@20516 32
Hans-G?nter@24484 33 mkdir _build &&
Hans-G?nter@24484 34 cd _build &&
Hans-G?nter@24484 35 cmake .. \
Hans-G?nter@24484 36 -D CMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@24484 37 -D libdir=/usr/lib \
Hans-G?nter@24484 38 -D WARN_FLAGS:STRING="-Wall -Wextra" &&
al@20516 39 make &&
Hans-G?nter@24484 40 make install DESTDIR=$install || return 1
al@20516 41
Hans-G?nter@24484 42 cd $src
Hans-G?nter@24484 43 mkdir -p $install/usr/share/doc/$PACKAGE-$VERSION
Hans-G?nter@24484 44 cp CHANGELOG.md $install/usr/share/doc/$PACKAGE-$VERSION/
Hans-G?nter@24484 45 cp README.md $install/usr/share/doc/$PACKAGE-$VERSION/
al@20516 46
Hans-G?nter@24484 47 mkdir -p $install/usr/share/man/man1
Hans-G?nter@24484 48 cp man/linux/dislocker-bek.1 $install/usr/share/man/man1/
Hans-G?nter@24484 49 cp man/linux/dislocker-metadata.1 $install/usr/share/man/man1/
al@20516 50 }
al@20516 51
Hans-G?nter@24484 52 genpkg_rules()
Hans-G?nter@24484 53 {
Hans-G?nter@24484 54 cook_copy_folders bin
Hans-G?nter@24484 55 cook_copy_folders lib
al@20516 56 }