2009-05-15 01:22:34 +00:00
|
|
|
# Template file for 'libsoup'
|
|
|
|
pkgname=libsoup
|
2014-12-13 09:41:11 +00:00
|
|
|
version=2.48.1
|
2014-11-08 08:59:31 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-11-04 10:37:38 +00:00
|
|
|
configure_args="--disable-static $(vopt_enable gir introspection)"
|
2014-08-27 16:26:04 +00:00
|
|
|
hostmakedepends="pkg-config intltool glib-devel libtool automake gettext-devel"
|
2014-11-04 10:37:38 +00:00
|
|
|
makedepends="libglib-devel libxml2-devel sqlite-devel glib-networking $(vopt_if gir gobject-introspection)"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="glib-networking"
|
2009-05-15 01:22:34 +00:00
|
|
|
short_desc="HTTP library implementation in C"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
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-12-13 09:41:11 +00:00
|
|
|
checksum=9b0d14b36e36a3131a06c6e3aa7245716e6904e3e636df81c0b6c8bd3f646f9a
|
2013-04-13 08:15:49 +00:00
|
|
|
|
2014-01-29 09:40:46 +00:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
2014-08-27 16:26:04 +00:00
|
|
|
autoreconf -fi
|
2014-01-29 09:40:46 +00:00
|
|
|
}
|
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
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"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/pkgconfig/libsoup-2.4.pc
|
2014-01-29 09:40:46 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0/Soup-2.4.gir
|
|
|
|
fi
|
2013-04-13 08:15:49 +00:00
|
|
|
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"
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/include/libsoup-gnome*"
|
|
|
|
vmove "usr/lib/pkgconfig/*gnome*"
|
2014-01-29 09:40:46 +00:00
|
|
|
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"
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
libsoup-gnome_package() {
|
2013-09-26 12:26:34 +00:00
|
|
|
short_desc+=" - GNOME libraries"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
2013-09-26 12:26:34 +00:00
|
|
|
vmove "usr/lib/libsoup-gnome*.so.*"
|
2014-01-29 09:40:46 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove "usr/lib/girepository-1.0/SoupGNOME*"
|
|
|
|
fi
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|