wok annotate gnustep-base/receipt @ rev 25096

created recipe for wordgrinder
author Hans-G?nter Theisgen
date Sat Jun 18 15:13:12 2022 +0100 (2022-06-18)
parents 453c249b6219
children 19fff4ad1644
rev   line source
pankso@4053 1 # SliTaz package receipt.
pankso@4053 2
pankso@4053 3 PACKAGE="gnustep-base"
Hans-G?nter@24456 4 VERSION="1.28.0"
pankso@4053 5 CATEGORY="x-window"
pankso@4053 6 SHORT_DESC="GNUstep base package."
pankso@4053 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
Hans-G?nter@22865 9 WEB_SITE="http://www.gnustep.org/"
Hans-G?nter@22865 10
pankso@4053 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24425 12 WGET_URL="http://ftp.gnustep.org/pub/gnustep/core/$TARBALL"
pankso@4053 13
Hans-G?nter@24456 14 DEPENDS="gnutls icu libbfd libcrypto libffi libobjc libssl libtasn1 libxml2
Hans-G?nter@24456 15 libxslt"
Hans-G?nter@24456 16 BUILD_DEPENDS="gnustep-make gnutls-dev icu-dev libffi-dev libcrypto-dev
Hans-G?nter@24456 17 libtasn1-dev libxml2-dev libxslt-dev openssl-dev"
pankso@10008 18
pascal@24425 19 # What is the latest version available today?
pascal@24425 20 current_version()
pascal@24425 21 {
pascal@24425 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 24 }
pascal@24425 25
pankso@4053 26 # Rules to configure and make the package.
pankso@4053 27 compile_rules()
pankso@4053 28 {
pascal@21405 29 sed -i 's|\(buf->buffer\)->content.*)|xmlBufContent(\1), xmlBufUse(\1))|' \
pascal@21405 30 Source/Additions/GSXML.m
Hans-G?nter@24456 31 # 1.26.0
Hans-G?nter@24456 32 # sed -i 's/.*gnutls_transport_set_lowat.*/#if GNUTLS_VERSION_NUMBER < 0x020c00\n&\n#endif/' Source/GSSocketStream.m
Hans-G?nter@22865 33
Hans-G?nter@24456 34 . /usr/share/GNUstep/Makefiles/GNUstep.sh &&
Hans-G?nter@24456 35 ./configure \
Hans-G?nter@24456 36 --prefix=/usr \
pankso@4053 37 $CONFIGURE_ARGS &&
Hans-G?nter@22865 38 make &&
Hans-G?nter@24456 39 make install DESTDIR=$DESTDIR
pankso@4053 40 }
pankso@4053 41
pankso@4053 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4053 43 genpkg_rules()
pankso@4053 44 {
pankso@4053 45 mkdir -p $fs/usr/lib
Hans-G?nter@22865 46
Hans-G?nter@22865 47 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22865 48 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22865 49 cp -a $install/usr/lib/GNUstep $fs/usr/lib
pankso@4053 50 }