void-packages/srcpkgs/imgbrd-grabber/template
2019-04-18 12:37:25 -03:00

33 lines
1 KiB
Bash

# Template file for 'imgbrd-grabber'
pkgname=imgbrd-grabber
version=7.1.0
revision=1
build_style=cmake
hostmakedepends="nodejs"
makedepends="qt5-declarative-devel qt5-multimedia-devel qt5-plugin-mysql
qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds
qt5-script-devel qt5-tools-devel"
short_desc="Powerful imageboard/booru downloader"
maintainer="SolitudeSF <solitudesf@protonmail.com>"
license="Apache-2.0"
homepage="https://bionus.github.io/imgbrd-grabber"
changelog="https://github.com/Bionus/imgbrd-grabber/releases"
distfiles="https://github.com/Bionus/imgbrd-grabber/archive/v${version}.tar.gz"
checksum=b46bbeb8c25c1b134cf5900c71b5d765d10f9f343a0e842ff3fbf4679142239d
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake"
fi
case "$XBPS_TARGET_MACHINE" in
i686*) broken="segfaults with node" ;;
esac
pre_configure() {
vsed -i 's|USE_QSCINTILLA 1|USE_QSCINTILLA 0|' gui/CMakeLists.txt
vsed -i 's|USE_BREAKPAD 1|USE_BREAKPAD 0|' gui/CMakeLists.txt
}
post_install() {
touch ${DESTDIR}/usr/share/Grabber/settings.ini
}