wok annotate newt/receipt @ rev 24860
updated lionwiki (3.2.9 -> 3.2.12)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 29 10:26:06 2022 +0100 (2022-03-29) |
parents | 08707fe48dcf |
children |
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 |
pascal@24453 | 17 # What is the latest version available today? |
pascal@24453 | 18 current_version() |
pascal@24453 | 19 { |
pascal@24453 | 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 22 } |
pascal@24453 | 23 |
erjo@511 | 24 # Rules to configure and make the package. |
erjo@511 | 25 compile_rules() |
erjo@511 | 26 { |
pascal@5709 | 27 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1) |
pascal@3134 | 28 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|') |
pascal@3134 | 29 |
pascal@3134 | 30 echo "Patching for $python and $tcl..." |
Hans-G?nter@23240 | 31 sed -i -e "s/python2.4/$python/" \ |
pascal@3134 | 32 -e "s/tcl8.4/$tcl/" \ |
Hans-G?nter@23240 | 33 Makefile.in |
Hans-G?nter@21540 | 34 |
Hans-G?nter@21540 | 35 ./configure \ |
Hans-G?nter@21540 | 36 --prefix=/usr \ |
Hans-G?nter@21540 | 37 --infodir=/usr/share/info \ |
Hans-G?nter@21540 | 38 --mandir=/usr/share/man \ |
Hans-G?nter@21540 | 39 $CONFIGURE_ARGS && |
pascal@1511 | 40 make && |
pascal@15585 | 41 make instroot=$DESTDIR install |
erjo@511 | 42 } |
erjo@511 | 43 |
erjo@511 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@511 | 45 genpkg_rules() |
erjo@511 | 46 { |
erjo@511 | 47 mkdir -p $fs/usr/lib |
Hans-G?nter@21540 | 48 |
Hans-G?nter@21540 | 49 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21540 | 50 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@21540 | 51 cp -a $install/usr/lib/python* $fs/usr/lib |
erjo@511 | 52 } |