contrib/libsoup/Pkgfile
2016-03-08 15:09:12 +11:00

31 lines
729 B
Plaintext

# Description: HTTP library implementation in C.
# URL: http://live.gnome.org/LibSoup
# Maintainer: Danny Rawlins, crux at romster dot me
# Packager: Matt Housh, jaeger at morpheus dot net
# Depends on: glib-networking libxml2 sqlite3 gobject-introspection
# Optional: vala
## gobject-introspection is optional but required for webkitgtk
name=libsoup
version=2.52.2
release=3
source=(http://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}
}