wok view newt/receipt @ rev 25220
updated python-psutil (5.7.0 -> 5.9.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 15:55:11 2022 +0100 (2022-07-13) |
parents | 08707fe48dcf |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="newt"
4 VERSION="0.52.21"
5 CATEGORY="development"
6 SHORT_DESC="Not Erik's Windowing Toolkit."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://pagure.io/newt/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://releases.pagure.org/$PACKAGE/$TARBALL"
14 DEPENDS="popt slang tcl"
15 BUILD_DEPENDS="popt-dev python-dev slang-dev tcl"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1)
28 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')
30 echo "Patching for $python and $tcl..."
31 sed -i -e "s/python2.4/$python/" \
32 -e "s/tcl8.4/$tcl/" \
33 Makefile.in
35 ./configure \
36 --prefix=/usr \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make &&
41 make instroot=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/usr/lib/python* $fs/usr/lib
52 }