62 lines
1.6 KiB
Bash
62 lines
1.6 KiB
Bash
# Template file for 'gwenhywfar'
|
|
pkgname=gwenhywfar
|
|
version=4.20.1
|
|
revision=3
|
|
hostmakedepends="automake pkg-config libgcrypt-devel libtool"
|
|
makedepends="libgcrypt-devel gnutls-devel gtk+-devel qt5-devel gtk+3-devel"
|
|
build_style=gnu-configure
|
|
configure_args="--enable-visibility --disable-binreloc
|
|
--with-qt5-includes=${XBPS_CROSS_BASE}/usr/include
|
|
--with-qt5-libs=${XBPS_CROSS_BASE}/usr/lib
|
|
--with-qt5-moc=/usr/lib/qt5/bin/moc --with-qt5-uic=/usr/lib/qt5/bin/uic"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1"
|
|
short_desc="OS abstraction functions for various projects"
|
|
homepage="https://github.com/aqbanking/gwenhywfar"
|
|
distfiles="https://github.com/aqbanking/gwenhywfar/archive/${version}.tar.gz"
|
|
checksum=efc4b9dcb51981e7c56e22ac6054ace396c3387667b134128d4e9fcad50544b8
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools qt5-devel"
|
|
fi
|
|
|
|
pre_configure() {
|
|
# Build all GUIs
|
|
sed -i configure.ac -e's;"qt4 gtk2";"qt5 gtk2 gtk3";'
|
|
autoreconf -fi
|
|
}
|
|
|
|
gwenhywfar-gtk_package() {
|
|
short_desc+=" - gtk+2 bindings"
|
|
pkg_install() {
|
|
vmove usr/lib/*-gtk2*
|
|
}
|
|
}
|
|
|
|
gwenhywfar-gtk3_package() {
|
|
short_desc+=" - gtk+3 bindings"
|
|
pkg_install() {
|
|
vmove usr/lib/*-gtk3*
|
|
}
|
|
}
|
|
|
|
gwenhywfar-qt5_package() {
|
|
short_desc+=" - qt5 bindings"
|
|
pkg_install() {
|
|
vmove usr/lib/*-qt5*
|
|
}
|
|
}
|
|
|
|
gwenhywfar-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/bin/gwenhywfar-config
|
|
vmove usr/share/aclocal
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|