void-packages/srcpkgs/plume-creator/template

38 lines
1.5 KiB
Bash

# Template file for 'plume-creator'
pkgname=plume-creator
version=0.66+dfsg1pl3.2
revision=2
build_style=qmake
configure_args="plume-creator-all.pro"
hostmakedepends="qt5-qmake qt5-host-tools pkg-config"
makedepends="qt5-devel qt5-declarative-devel qt5-tools-devel
qt5-quickcontrols2-devel qt5-multimedia-devel qt5-svg-devel
hunspell-devel libzip-devel quazip-devel"
short_desc="Open-source tool for novelists"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://packages.debian.org/sid/source/plume-creator"
distfiles="${DEBIAN_SITE}/main/p/plume-creator/${pkgname}_${version%pl*}.orig.tar.xz
${DEBIAN_SITE}/main/p/plume-creator/${pkgname}_${version/pl/-}.debian.tar.bz2"
checksum="f88f9524184bcf60dae855d6ad37899aefa39de0edd56098e93ce3b97b679e0c
e3c5421ca91bf823843bcb6c08be32cec7ddd9b6f069a4ebbe2085fcc5aeea00"
skip_extraction="${pkgname}_${version/pl/-}.debian.tar.bz2"
pre_patch() {
local p
TAR=$(command -v bsdtar || command -v tar)
$TAR -xf $XBPS_SRCDISTDIR/$pkgname-$version/$skip_extraction
for p in $(cat debian/patches/series); do
patch -Np1 -F0 -i debian/patches/$p || return 1
done
vsed -i 's|quazip5/JlCompress|QuaZip-Qt5-1.4/quazip/JlCompress|g' src/fileupdater.cpp src/hub.h \
src/themes.cpp src/importuserdictdialog.cpp src/zipper/zipper.cpp \
src/common/utils.h
vsed -i 's|-lquazip5|-lquazip1-qt5|' plume-creator.pro
}
pre_build() {
[ -d ${wrksrc}/externals/quazip ] || \
ln -s -T ${XBPS_CROSS_BASE}/usr/include/QuaZip-Qt5-1.4/quazip ${wrksrc}/externals/quazip
}