opt/libsoup/Pkgfile
2018-05-13 18:10:31 +10:00

28 lines
633 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 gobject-introspection krb5 libxml2
# Optional: vala
name=libsoup
version=2.62.2
release=1
source=(https://ftp.gnome.org/pub/gnome/sources/$name/${version%.*}/$name-$version.tar.xz)
build() {
cd $name-$version
local VALA
if [ "$(pkginfo -i | grep '^vala ')" ]; then
VALA='--enable-vala=yes'
else
VALA='--enable-vala=no'
fi
./configure --prefix=/usr $VALA
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/{locale,gtk-doc}
}