wok view newt/receipt @ rev 15751

Up and fix xorg-server (1.12.4) Removed Kdrive who should be in xorg-server-* pkgs and save space on iSO
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 03 12:43:42 2014 +0100 (2014-01-03)
parents 3765f181a6d5
children 200d202603ff
line source
1 # SliTaz package receipt.
3 PACKAGE="newt"
4 VERSION="0.52.12"
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 cd $src
21 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1)
22 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')
24 echo "Patching for $python and $tcl..."
25 sed -i -e "s/python2.4/$python/" \
26 -e "s/tcl8.4/$tcl/" \
27 Makefile.in
28 ./configure --prefix=/usr --infodir=/usr/share/info \
29 --mandir=/usr/share/man $CONFIGURE_ARGS &&
30 make &&
31 make instroot=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 cp -a $install/usr/lib/python* $fs/usr/lib
41 }