wok annotate newt/receipt @ rev 20257

Add giflossy
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 13 23:27:32 2018 +0100 (2018-03-13)
parents 17bf4f330c44
children 5ec950823322
rev   line source
erjo@511 1 # SliTaz package receipt.
erjo@511 2
erjo@511 3 PACKAGE="newt"
pascal@19698 4 VERSION="0.52.19"
erjo@511 5 CATEGORY="development"
erjo@511 6 SHORT_DESC="Not Erik's Windowing Toolkit"
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15584 8 LICENSE="GPL2"
erjo@511 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@8642 10 WEB_SITE="https://fedorahosted.org/newt/"
slaxemulator@8642 11 WGET_URL="https://fedorahosted.org/releases/n/e/$PACKAGE/$TARBALL"
erjo@511 12
pascal@15584 13 DEPENDS="slang popt tcl"
pascal@15584 14 BUILD_DEPENDS="slang-dev tcl popt-dev python-dev wget"
pascal@15584 15
erjo@511 16 # Rules to configure and make the package.
erjo@511 17 compile_rules()
erjo@511 18 {
pascal@5709 19 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1)
pascal@3134 20 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')
pascal@3134 21
pascal@3134 22 echo "Patching for $python and $tcl..."
pascal@3134 23 sed -i -e "s/python2.4/$python/" \
pascal@3134 24 -e "s/tcl8.4/$tcl/" \
pascal@2506 25 Makefile.in
erjo@511 26 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@1511 27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@1511 28 make &&
pascal@15585 29 make instroot=$DESTDIR install
erjo@511 30 }
erjo@511 31
erjo@511 32 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@511 33 genpkg_rules()
erjo@511 34 {
erjo@511 35 mkdir -p $fs/usr/lib
pascal@15584 36 cp -a $install/usr/bin $fs/usr
pascal@15584 37 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@15584 38 cp -a $install/usr/lib/python* $fs/usr/lib
erjo@511 39 }