64 lines
1.9 KiB
Bash
64 lines
1.9 KiB
Bash
# Template file for 'libsoup'
|
|
pkgname=libsoup
|
|
version=2.74.0
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dgssapi=disabled -Dntlm=disabled -Dsysprof=disabled
|
|
-Dtls_check=false -Dintrospection=$(vopt_if gir enabled disabled)
|
|
-Dvapi=$(vopt_if gir enabled disabled)"
|
|
hostmakedepends="gettext-devel glib-devel pkg-config gettext
|
|
$(vopt_if gir vala)"
|
|
makedepends="libglib-devel libxml2-devel sqlite-devel libpsl-devel
|
|
brotli-devel $(vopt_if gir 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://gitlab.gnome.org/GNOME/libsoup/-/raw/libsoup-2-74/NEWS"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=33b1d4e0d639456c675c227877e94a8078d731233e2d57689c11abcef7d3c48e
|
|
make_check=no # gio tests can't run in chroot
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
libsoup-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${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
|
|
vmove usr/share/vala
|
|
fi
|
|
vmove usr/include/libsoup-2.4
|
|
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
|
|
}
|
|
}
|