wok-6.x view newt/receipt @ rev 5814
libassuan: update BUILD_DEPENDS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 12 21:58:39 2010 +0200 (2010-07-12) |
parents | 0548ca2d9e6e |
children | aa91b84f09b3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="newt"
4 VERSION="0.52.2"
5 CATEGORY="development"
6 SHORT_DESC="Not Erik's Windowing Toolkit"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="slang popt tcl"
9 BUILD_DEPENDS="slang-dev tcl popt-dev python-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://packages.debian.org/etch/libnewt0.52"
12 WGET_URL="http://mirror.pimentvert.com/sources/newt/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # Fixe group/owner
20 chown -R root.root $src
22 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1)
23 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')
25 echo "Patching for $python and $tcl..."
26 sed -i -e "s/python2.4/$python/" \
27 -e "s/tcl8.4/$tcl/" \
28 Makefile.in
29 ./configure --prefix=/usr --infodir=/usr/share/info \
30 --mandir=/usr/share/man $CONFIGURE_ARGS &&
31 make &&
32 make instroot=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
41 cp -a $_pkg/usr/lib/python* $fs/usr/lib
43 # Bug fix
44 cd $fs/usr/lib
45 ln -s libnewt.so.0.52.1 libnewt.so.0.52
46 strip -s $fs/usr/lib/*
47 }