wok annotate newt/receipt @ rev 12142

Up cookutils (1.7.1) - Fix config file
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 14 03:48:34 2012 +0100 (2012-03-14)
parents a40238673a42
children 3765f181a6d5
rev   line source
erjo@511 1 # SliTaz package receipt.
erjo@511 2
erjo@511 3 PACKAGE="newt"
slaxemulator@8642 4 VERSION="0.52.12"
erjo@511 5 CATEGORY="development"
erjo@511 6 SHORT_DESC="Not Erik's Windowing Toolkit"
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@2520 8 DEPENDS="slang popt tcl"
slaxemulator@8642 9 BUILD_DEPENDS="slang-dev tcl popt-dev python-dev wget"
erjo@511 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@8642 11 WEB_SITE="https://fedorahosted.org/newt/"
slaxemulator@8642 12 WGET_URL="https://fedorahosted.org/releases/n/e/$PACKAGE/$TARBALL"
erjo@511 13
erjo@511 14 # Rules to configure and make the package.
erjo@511 15 compile_rules()
erjo@511 16 {
erjo@511 17 cd $src
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 &&
erjo@511 29 make instroot=$PWD/_pkg 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
erjo@511 36 cp -a $_pkg/usr/bin $fs/usr
erjo@511 37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
erjo@511 38 cp -a $_pkg/usr/lib/python* $fs/usr/lib
erjo@511 39 }
erjo@511 40