wok-next view newt/receipt @ rev 15584

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 30 17:02:58 2013 +0000 (2013-11-30)
parents aa91b84f09b3
children 17bf4f330c44
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=$DESTIDR 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 }