void-packages/srcpkgs/libsoup/template

72 lines
1.8 KiB
Text
Raw Normal View History

# Template file for 'libsoup'
pkgname=libsoup
2014-03-27 09:24:28 +00:00
version=2.46.0
revision=1
build_style=gnu-configure
2012-09-26 00:29:34 +00:00
configure_args="--disable-static"
2014-08-27 16:26:04 +00:00
hostmakedepends="pkg-config intltool glib-devel libtool automake gettext-devel"
makedepends="libglib-devel libxml2-devel sqlite-devel glib-networking"
depends="glib-networking"
short_desc="HTTP library implementation in C"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-07-29 06:06:53 +00:00
homepage="http://www.gnome.org"
license="LGPL-2.1"
2013-09-26 12:26:34 +00:00
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
2014-03-27 09:24:28 +00:00
checksum=fa3d5574c1a2df521242e2ca624a2b3057121798cab9f8f40525aa186a7b15a3
# 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"
hostmakedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
pre_configure() {
2014-08-27 16:26:04 +00:00
autoreconf -fi
}
libsoup-devel_package() {
2013-10-15 14:30:17 +00:00
depends="libglib-devel libxml2-devel libsoup>=${version}_${revision}"
2013-09-26 12:26:34 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/pkgconfig/libsoup-2.4.pc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0/Soup-2.4.gir
fi
vmove usr/include/libsoup-2.4
vmove usr/share/gtk-doc
2013-09-26 12:26:34 +00:00
vmove "usr/lib/libsoup-2.4.so"
}
}
libsoup-gnome-devel_package() {
2013-10-15 14:30:17 +00:00
depends="libsoup-devel>=${version}_${revision} libsoup-gnome>=${version}_${revision}"
2013-09-26 12:26:34 +00:00
short_desc+=" - GNOME development files"
pkg_install() {
vmove "usr/include/libsoup-gnome*"
vmove "usr/lib/pkgconfig/*gnome*"
if [ "$build_option_gir" ]; then
vmove "usr/share/gir-1.0/SoupGNOME*"
fi
2013-09-26 12:26:34 +00:00
vmove "usr/lib/libsoup-gnome*.so"
}
}
libsoup-gnome_package() {
2013-09-26 12:26:34 +00:00
short_desc+=" - GNOME libraries"
pkg_install() {
2013-09-26 12:26:34 +00:00
vmove "usr/lib/libsoup-gnome*.so.*"
if [ "$build_option_gir" ]; then
vmove "usr/lib/girepository-1.0/SoupGNOME*"
fi
}
}