# SliTaz package receipt. PACKAGE="libsoup248" SOURCE="libsoup" VERSION="2.48.0" CATEGORY="x-window" SHORT_DESC="GNOME Soup Library." MAINTAINER="pankso@slitaz.org" LICENSE="LGPL2" TARBALL="$SOURCE-$VERSION.tar.xz" WEB_SITE="https://live.gnome.org/LibSoup/" WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION%.*}/$TARBALL" HOST_ARCH="i486 arm" DEPENDS="glib glibc-base libffi libgio libxml2 pcre zlib" BUILD_DEPENDS="glib-networking libgio-dev \ libxml2-dev libgcrypt-dev libtasn1-dev gnutls-dev zlib-dev \ libgnome-keyring-dev sqlite-dev dbus-dev" # Handle cross compilation. case "$ARCH" in i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; esac current_version() { wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \ sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \ sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ --libdir=/usr/libsoup248 \ --datarootdir=/usr/libsoup248/share \ --includedir=/usr/libsoup248/include \ --oldincludedir=/usr/libsoup248/include \ --with-html-dir=/usr/share/doc \ --disable-gtk-doc \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/libsoup248 cp -a $install/usr/libsoup248/*.so* $fs/usr/libsoup248 # move to libsoup-gnome package rm -f $fs/usr/libsoup248/libsoup-gnome* }