wok view newt/receipt @ rev 24295
Up ventoy (1.0.64)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 14 17:35:36 2022 +0000 (2022-01-14) |
parents | 5ec950823322 |
children | 241fb98cab1c |
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1)
21 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')
23 echo "Patching for $python and $tcl..."
24 sed -i -e "s/python2.4/$python/" \
25 -e "s/tcl8.4/$tcl/" \
26 Makefile.in
28 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make &&
34 make instroot=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp -a $install/usr/lib/python* $fs/usr/lib
45 }