wok-6.x annotate newt/receipt @ rev 14099
wine-rt*: up 1.5.23
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Sat Feb 23 08:13:57 2013 -0800 (2013-02-23) |
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 |