42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'gdl'
|
|
pkgname=gdl
|
|
version=3.28.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="$(vopt_enable gir introspection)"
|
|
hostmakedepends="pkg-config intltool glib-devel"
|
|
makedepends="libxml2-devel gtk+3-devel"
|
|
short_desc="GNOME Docking Library"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1-or-later, LGPL-2.0-or-later"
|
|
homepage="https://developer.gnome.org/gdl/"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=52cc98ecc105148467b3b2b4e0d27ae484b1b6710d53413f771ed07ef1b737b6
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64-musl) build_options_default+=" gir" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir" ;;
|
|
esac
|
|
|
|
pre_build() {
|
|
sed 's,-I$(includedir),,g' -i gdl/Makefile
|
|
}
|
|
|
|
gdl-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="gdl>=${version}"
|
|
pkg_install() {
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|