wok view newt/receipt @ rev 3054
linux-wireless: add rt2860sta
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 13 16:40:57 2009 +0200 (2009-05-13) |
parents | b8669c134c41 |
children | 0548ca2d9e6e |
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 sed -i -e "s/python2.4/$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|')" \
23 -e "s/tcl8.4/$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')/" \
24 Makefile.in
25 ./configure --prefix=/usr --infodir=/usr/share/info \
26 --mandir=/usr/share/man $CONFIGURE_ARGS &&
27 make &&
28 make instroot=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 cp -a $_pkg/usr/lib/python* $fs/usr/lib
39 # Bug fix
40 cd $fs/usr/lib
41 ln -s libnewt.so.0.52.1 libnewt.so.0.52
42 strip -s $fs/usr/lib/*
43 }