wok-current annotate newt/receipt @ rev 19905
Up backup-manager (0.7.13)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 10 09:25:19 2017 +0200 (2017-04-10) |
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 } |