wok-4.x view newt/receipt @ rev 10474
youtube-dl: add compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 11:53:03 2011 +0200 (2011-05-25) |
parents | a40238673a42 |
children |
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 DEPENDS="slang popt tcl"
9 BUILD_DEPENDS="slang-dev tcl popt-dev python-dev wget"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="https://fedorahosted.org/newt/"
12 WGET_URL="https://fedorahosted.org/releases/n/e/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
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=$PWD/_pkg 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 $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
38 cp -a $_pkg/usr/lib/python* $fs/usr/lib
39 }