66c5848531
tzdata was added to base-chroot
43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'libical'
|
|
pkgname=libical
|
|
version=3.0.8
|
|
revision=3
|
|
build_style=cmake
|
|
build_helper="gir qemu"
|
|
configure_args="-DICAL_BUILD_DOCS=false
|
|
$(vopt_if gir '-DGOBJECT_INTROSPECTION=true -DICAL_GLIB_VAPI=true')"
|
|
hostmakedepends="gettext libglib-devel libxml2-devel perl pkg-config $(vopt_if gir vala)"
|
|
makedepends="libglib-devel libxml2-devel $(vopt_if gir vala-devel)"
|
|
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=09fecacaf75ba5a242159e3a9758a5446b5ce4d0ab684f98a7040864e1d1286f
|
|
disable_parallel_build=yes
|
|
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
pre_build() {
|
|
# export GIR_EXTRA_LIBS_PATH=$wrksrc/build/lib
|
|
# export LD_LIBRARY_PATH=$wrksrc/build/lib
|
|
# export QEMU_SET_ENV=LD_LIBRARY_PATH=$wrksrc/build/lib
|
|
export LDFLAGS="$LDFLAGS -lical"
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|