39 lines
1.4 KiB
Bash
39 lines
1.4 KiB
Bash
# Template file for 'plume-creator'
|
|
pkgname=plume-creator
|
|
version=0.66+dfsg1pl3.2
|
|
revision=1
|
|
build_style=qmake
|
|
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="An open-source tool for novelists"
|
|
maintainer="VargMon <VargMon98@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="http://plume-creator.eu/"
|
|
configure_args="plume-creator-all.pro"
|
|
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"
|
|
|
|
post_extract() {
|
|
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
|
|
sed -i 's|quazip/JlCompress|quazip5/JlCompress|g' src/fileupdater.cpp src/hub.h \
|
|
src/themes.cpp src/importuserdictdialog.cpp src/zipper/zipper.cpp \
|
|
src/common/utils.h
|
|
}
|
|
|
|
pre_build() {
|
|
[ -d ${wrksrc}/externals/quazip ] || ln -s -T ${XBPS_CROSS_BASE}/usr/include/quazip5 ${wrksrc}/externals/quazip
|
|
}
|