78 lines
2.1 KiB
Bash
78 lines
2.1 KiB
Bash
# Template file for 'libsoup'
|
|
pkgname=libsoup
|
|
version=2.64.2
|
|
revision=2
|
|
build_style=gnu-configure
|
|
build_helper="gir"
|
|
configure_args="--disable-tls-check --disable-static
|
|
$(vopt_enable gir introspection) $(vopt_enable vala)"
|
|
hostmakedepends="automake gettext-devel glib-devel intltool libtool pkg-config
|
|
$(vopt_if vala 'vala')"
|
|
makedepends="libglib-devel libxml2-devel sqlite-devel libpsl-devel
|
|
$(vopt_if vala 'vala-devel')"
|
|
depends="glib-networking"
|
|
short_desc="HTTP library implementation in C"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/libsoup"
|
|
changelog="https://raw.githubusercontent.com/GNOME/libsoup/gnome-3-28/NEWS"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=75ddc194a5b1d6f25033bb9d355f04bfe5c03e0e1c71ed0774104457b3a786c6
|
|
|
|
# Package build options
|
|
build_options="gir vala"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64-musl) build_options_default+=" gir vala" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir vala" ;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
do_check() {
|
|
# /bin/sh: no: command not found
|
|
:
|
|
}
|
|
|
|
libsoup-devel_package() {
|
|
depends="${makedepends} libsoup>=${version}_${revision}"
|
|
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
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
vmove usr/include/libsoup-2.4
|
|
vmove usr/share/gtk-doc
|
|
vmove "usr/lib/libsoup-2.4.so"
|
|
}
|
|
}
|
|
|
|
libsoup-gnome-devel_package() {
|
|
depends="libsoup-devel>=${version}_${revision} libsoup-gnome>=${version}_${revision}"
|
|
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
|
|
vmove "usr/lib/libsoup-gnome*.so"
|
|
}
|
|
}
|
|
|
|
libsoup-gnome_package() {
|
|
short_desc+=" - GNOME libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/libsoup-gnome*.so.*"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove "usr/lib/girepository-1.0/SoupGNOME*"
|
|
fi
|
|
}
|
|
}
|