# SliTaz package receipt. PACKAGE="gnustep-base" VERSION="1.28.0" CATEGORY="x-window" SHORT_DESC="GNUstep base package." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="http://www.gnustep.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/gnustep/libs-base/releases/download/base-${VERSION//./_}/$TARBALL" DEPENDS="gnutls icu libbfd libcrypto libffi libobjc libssl libtasn1 libxml2 libxslt" BUILD_DEPENDS="gnustep-make gnutls-dev icu-dev libffi-dev libcrypto-dev libtasn1-dev libxml2-dev libxslt-dev openssl-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's|\(buf->buffer\)->content.*)|xmlBufContent(\1), xmlBufUse(\1))|' \ Source/Additions/GSXML.m # 1.26.0 # sed -i 's/.*gnutls_transport_set_lowat.*/#if GNUTLS_VERSION_NUMBER < 0x020c00\n&\n#endif/' Source/GSSocketStream.m . /usr/share/GNUstep/Makefiles/GNUstep.sh && ./configure \ --prefix=/usr \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/GNUstep $fs/usr/lib }