wok-6.x view newt/receipt @ rev 21198
zfs-fuse: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 06 14:55:40 2019 +0200 (2019-04-06) |
parents | 17bf4f330c44 |
children | 5ec950823322 |
line source
1 # SliTaz package receipt.
3 PACKAGE="newt"
4 VERSION="0.52.19"
5 CATEGORY="development"
6 SHORT_DESC="Not Erik's Windowing Toolkit"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://fedorahosted.org/newt/"
11 WGET_URL="https://fedorahosted.org/releases/n/e/$PACKAGE/$TARBALL"
13 DEPENDS="slang popt tcl"
14 BUILD_DEPENDS="slang-dev tcl popt-dev python-dev wget"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1)
20 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')
22 echo "Patching for $python and $tcl..."
23 sed -i -e "s/python2.4/$python/" \
24 -e "s/tcl8.4/$tcl/" \
25 Makefile.in
26 ./configure --prefix=/usr --infodir=/usr/share/info \
27 --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make &&
29 make instroot=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 cp -a $install/usr/lib/python* $fs/usr/lib
39 }