wok annotate newt/receipt @ rev 15942
compton: disable some features
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Feb 22 19:56:00 2014 +0100 (2014-02-22) |
parents | 3765f181a6d5 |
children | 200d202603ff |
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@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 { |
erjo@511 | 19 cd $src |
erjo@511 | 20 |
pascal@5709 | 21 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1) |
pascal@3134 | 22 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|') |
pascal@3134 | 23 |
pascal@3134 | 24 echo "Patching for $python and $tcl..." |
pascal@3134 | 25 sed -i -e "s/python2.4/$python/" \ |
pascal@3134 | 26 -e "s/tcl8.4/$tcl/" \ |
pascal@2506 | 27 Makefile.in |
erjo@511 | 28 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1511 | 29 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1511 | 30 make && |
pascal@15585 | 31 make instroot=$DESTDIR install |
erjo@511 | 32 } |
erjo@511 | 33 |
erjo@511 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@511 | 35 genpkg_rules() |
erjo@511 | 36 { |
erjo@511 | 37 mkdir -p $fs/usr/lib |
pascal@15584 | 38 cp -a $install/usr/bin $fs/usr |
pascal@15584 | 39 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15584 | 40 cp -a $install/usr/lib/python* $fs/usr/lib |
erjo@511 | 41 } |
erjo@511 | 42 |