void-packages/srcpkgs/gwenhywfar/template
2015-05-28 18:31:16 +02:00

48 lines
1.2 KiB
Bash

# Template file for 'gwenhywfar'
pkgname=gwenhywfar
version=4.14.0
revision=2
_dnrel=01
hostmakedepends="automake pkg-config libgcrypt-devel libtool"
makedepends="libgcrypt-devel gnutls-devel gtk+-devel"
build_style="gnu-configure"
configure_args="--enable-visibility --disable-binreloc"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL"
homepage="http://www.aquamaniac.de"
short_desc="OS abstraction functions for various projects"
distfiles="http://www2.aquamaniac.de/sites/download/download.php?package=01&release=${_dnrel}&file=01&dummy=gwenhywfar-$version.tar.gz"
checksum=7e0ec2f1cab7d22a5ae0066e0ef827d4affec59470b1bdbc42132b58a903dd03
pre_configure() {
autoreconf -fi
}
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" qt-devel"
gwenhywfar-qt_package() {
short_desc+=" - qt4 bindings"
pkg_install() {
vmove usr/lib/*-qt4*
}
}
else
configure_args+=" --with-guis=gtk2"
fi
gwenhywfar-gtk_package() {
short_desc+=" - gtk+2 bindings"
pkg_install() {
vmove usr/lib/*-gtk2*
}
}
gwenhywfar-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}