wok annotate newt/receipt @ rev 23539
updated python-pygments (2.2.0 -> 2.6.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 06 17:01:19 2020 +0100 (2020-04-06) |
parents | 5ec950823322 |
children | 241fb98cab1c |
rev | line source |
---|---|
erjo@511 | 1 # SliTaz package receipt. |
erjo@511 | 2 |
erjo@511 | 3 PACKAGE="newt" |
Hans-G?nter@23240 | 4 VERSION="0.52.21" |
erjo@511 | 5 CATEGORY="development" |
Hans-G?nter@21540 | 6 SHORT_DESC="Not Erik's Windowing Toolkit." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15584 | 8 LICENSE="GPL2" |
Hans-G?nter@21540 | 9 WEB_SITE="https://pagure.io/newt/" |
Hans-G?nter@21540 | 10 |
erjo@511 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21540 | 12 WGET_URL="https://releases.pagure.org/$PACKAGE/$TARBALL" |
erjo@511 | 13 |
Hans-G?nter@21540 | 14 DEPENDS="popt slang tcl" |
Hans-G?nter@21540 | 15 BUILD_DEPENDS="popt-dev python-dev slang-dev tcl" |
pascal@15584 | 16 |
erjo@511 | 17 # Rules to configure and make the package. |
erjo@511 | 18 compile_rules() |
erjo@511 | 19 { |
pascal@5709 | 20 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1) |
pascal@3134 | 21 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|') |
pascal@3134 | 22 |
pascal@3134 | 23 echo "Patching for $python and $tcl..." |
Hans-G?nter@23240 | 24 sed -i -e "s/python2.4/$python/" \ |
pascal@3134 | 25 -e "s/tcl8.4/$tcl/" \ |
Hans-G?nter@23240 | 26 Makefile.in |
Hans-G?nter@21540 | 27 |
Hans-G?nter@21540 | 28 ./configure \ |
Hans-G?nter@21540 | 29 --prefix=/usr \ |
Hans-G?nter@21540 | 30 --infodir=/usr/share/info \ |
Hans-G?nter@21540 | 31 --mandir=/usr/share/man \ |
Hans-G?nter@21540 | 32 $CONFIGURE_ARGS && |
pascal@1511 | 33 make && |
pascal@15585 | 34 make instroot=$DESTDIR install |
erjo@511 | 35 } |
erjo@511 | 36 |
erjo@511 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@511 | 38 genpkg_rules() |
erjo@511 | 39 { |
erjo@511 | 40 mkdir -p $fs/usr/lib |
Hans-G?nter@21540 | 41 |
Hans-G?nter@21540 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21540 | 43 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21540 | 44 cp -a $install/usr/lib/python* $fs/usr/lib |
erjo@511 | 45 } |