2018-04-02 15:54:55 +10:00
|
|
|
# Description: HTTP library implementation in C.
|
|
|
|
# URL: https://wiki.gnome.org/action/show/Projects/libsoup
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2018-09-09 01:24:20 +10:00
|
|
|
# Depends on: glib-networking libpsl libxml2
|
2019-03-14 23:46:43 +11:00
|
|
|
# Optional: vala krb5
|
2018-04-02 15:54:55 +10:00
|
|
|
|
|
|
|
name=libsoup
|
2019-05-29 00:33:50 +10:00
|
|
|
version=2.66.2
|
2018-04-02 15:54:55 +10:00
|
|
|
release=1
|
|
|
|
source=(https://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
2019-03-14 23:46:43 +11:00
|
|
|
prt-get isinst vala && PKGMK_LIBSOUP+=' -Dvapi=true' || PKGMK_LIBSOUP+=' -Dvapi=false'
|
|
|
|
prt-get isinst krb5 && PKGMK_LIBSOUP+=' -Dgssapi=true' || PKGMK_LIBSOUP+=' -Dgssapi=false'
|
2018-04-02 15:54:55 +10:00
|
|
|
|
2019-03-14 23:46:43 +11:00
|
|
|
meson setup build $name-$version --prefix=/usr ${PKGMK_LIBSOUP}
|
|
|
|
ninja -j ${JOBS-1} -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2018-04-02 15:54:55 +10:00
|
|
|
|
2019-03-14 23:46:43 +11:00
|
|
|
rm -r $PKG/usr/share/locale
|
2018-04-02 15:54:55 +10:00
|
|
|
}
|