void-packages/srcpkgs/notepadqq/template

26 lines
795 B
Bash

# Template file for 'notepadqq'
pkgname=notepadqq
version=1.4.8
revision=1
build_style=qmake
hostmakedepends="pkg-config qt5-tools"
makedepends="qt5-svg-devel qt5-webkit-devel"
depends="desktop-file-utils hicolor-icon-theme"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
short_desc="Text editor for developers"
homepage="https://notepadqq.com"
license="GPL-3.0-or-later"
distfiles="https://github.com/notepadqq/notepadqq/archive/v${version}.tar.gz"
checksum=13fba9abd84c59de27fbe92f74e2763b57588fcf9c88af10ec67313b0abbc9d0
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-svg-devel qt5-webkit-devel"
fi
post_install() {
# no need for upstream's weird magic, leads to segfaults anyway
rm "${DESTDIR}/usr/bin/notepadqq"
# use our simple start scipt
vbin ${FILESDIR}/notepadqq
}