wok-6.x view newt/receipt @ rev 21975

updated st (0.5 -> 0.8.2)
author Hans-G?nter Theisgen
date Fri Oct 11 14:31:25 2019 +0100 (2019-10-11)
parents 200d202603ff
children 08707fe48dcf
line source
1 # SliTaz package receipt.
3 PACKAGE="newt"
4 VERSION="0.52.20"
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 }