39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'libical'
|
|
pkgname=libical
|
|
version=3.0.6
|
|
revision=2
|
|
build_style=cmake
|
|
build_helper="gir"
|
|
configure_args="-DICAL_BUILD_DOCS=false
|
|
$(vopt_if gir '-DGOBJECT_INTROSPECTION=true -DICAL_GLIB_VAPI=true')"
|
|
hostmakedepends="libglib-devel libxml2-devel perl pkg-config $(vopt_if gir vala)"
|
|
makedepends="libglib-devel libxml2-devel $(vopt_if gir vala-devel)"
|
|
checkdepends="tzdata"
|
|
short_desc="Reference implementation of the iCalendar data type and format"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-only, MPL-2.0"
|
|
homepage="http://libical.github.io/libical/"
|
|
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=fd2404a3df42390268e9fb804ef9f235e429b6f0da8992a148cbb3614946d99b
|
|
patch_args="-Np1"
|
|
disable_parallel_build=y
|
|
build_options="gir"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
libical-devel_package() {
|
|
depends="icu-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
vmove usr/lib/cmake
|
|
}
|
|
}
|