void-packages/srcpkgs/libpeas/template
2019-02-24 18:30:25 +01:00

41 lines
1.1 KiB
Bash

# Template file for 'libpeas'
pkgname=libpeas
version=1.22.0
revision=2
build_style=gnu-configure
build_helper="gir"
hostmakedepends="pkg-config intltool glib-devel"
makedepends="vala-devel gtk+3-devel python-gobject-devel
python3-gobject-devel"
depends="python-gobject hicolor-icon-theme gjs>=1.38"
short_desc="Gobject-based plugins engine"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2"
homepage="http://www.gtk.org/"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=5b2fc0f53962b25bca131a5ec0139e6fef8e254481b6e777975f7a1d2702a962
LDFLAGS="-lpython2.7 -lpython3.6m"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) ;;
*-musl) broken="gobject-introspection" ;;
esac
post_install() {
# Remove demo.
rm -rf ${DESTDIR}/usr/bin ${DESTDIR}/usr/lib/peas-demo
}
libpeas-devel_package() {
depends="libglib-devel gtk+3-devel>=3.8 libgirepository-devel
${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gir-1.0
vmove usr/share/gtk-doc
}
}