22 lines
712 B
Plaintext
22 lines
712 B
Plaintext
# Description: HTTP library implementation in C.
|
|
# URL: https://wiki.gnome.org/action/show/Projects/libsoup
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: glib-networking libpsl libxml2
|
|
# Optional: vala krb5
|
|
|
|
name=libsoup
|
|
version=2.66.2
|
|
release=1
|
|
source=(https://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
prt-get isinst vala && PKGMK_LIBSOUP+=' -Dvapi=true' || PKGMK_LIBSOUP+=' -Dvapi=false'
|
|
prt-get isinst krb5 && PKGMK_LIBSOUP+=' -Dgssapi=true' || PKGMK_LIBSOUP+=' -Dgssapi=false'
|
|
|
|
meson setup build $name-$version --prefix=/usr ${PKGMK_LIBSOUP}
|
|
ninja -j ${JOBS-1} -C build
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
rm -r $PKG/usr/share/locale
|
|
}
|