54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
# Template file for 'gdl'
|
|
pkgname=gdl
|
|
version=3.12.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config intltool glib-devel"
|
|
makedepends="libxml2-devel gtk+3-devel"
|
|
short_desc="GNOME Docking Library"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="GPL-2"
|
|
homepage="https://developer.gnome.org/gdl/"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=4770f959f31ed5e616fe623c284e8dd6136e49902d19b6e37938d34be4f6b88d
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
configure_args+=" --enable-introspection"
|
|
makedepends+=" gobject-introspection"
|
|
else
|
|
configure_args+=" --disable-introspection"
|
|
fi
|
|
|
|
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"
|
|
}
|
|
}
|
|
|
|
gdl-doc_package() {
|
|
short_desc+=" - documentation"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmove usr/share/gtk-doc
|
|
}
|
|
}
|