wok annotate newt/receipt @ rev 2802
cdrkit-audio: symlink cdda2wav
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Tue Apr 28 15:34:37 2009 +0000 (2009-04-28) |
parents | b8669c134c41 |
children | 0548ca2d9e6e |
rev | line source |
---|---|
erjo@511 | 1 # SliTaz package receipt. |
erjo@511 | 2 |
erjo@511 | 3 PACKAGE="newt" |
erjo@511 | 4 VERSION="0.52.2" |
erjo@511 | 5 CATEGORY="development" |
erjo@511 | 6 SHORT_DESC="Not Erik's Windowing Toolkit" |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@2520 | 8 DEPENDS="slang popt tcl" |
pascal@1511 | 9 BUILD_DEPENDS="slang-dev tcl popt-dev python-dev" |
erjo@511 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@511 | 11 WEB_SITE="http://packages.debian.org/etch/libnewt0.52" |
erjo@511 | 12 WGET_URL="http://mirror.pimentvert.com/sources/newt/$TARBALL" |
erjo@511 | 13 |
erjo@511 | 14 # Rules to configure and make the package. |
erjo@511 | 15 compile_rules() |
erjo@511 | 16 { |
erjo@511 | 17 cd $src |
erjo@511 | 18 |
erjo@511 | 19 # Fixe group/owner |
erjo@511 | 20 chown -R root.root $src |
erjo@511 | 21 |
pascal@2506 | 22 sed -i -e "s/python2.4/$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|')" \ |
pascal@2506 | 23 -e "s/tcl8.4/$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')/" \ |
pascal@2506 | 24 Makefile.in |
erjo@511 | 25 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1511 | 26 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1511 | 27 make && |
erjo@511 | 28 make instroot=$PWD/_pkg install |
erjo@511 | 29 } |
erjo@511 | 30 |
erjo@511 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@511 | 32 genpkg_rules() |
erjo@511 | 33 { |
erjo@511 | 34 mkdir -p $fs/usr/lib |
erjo@511 | 35 cp -a $_pkg/usr/bin $fs/usr |
erjo@511 | 36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
erjo@511 | 37 cp -a $_pkg/usr/lib/python* $fs/usr/lib |
erjo@511 | 38 |
erjo@511 | 39 # Bug fix |
erjo@511 | 40 cd $fs/usr/lib |
erjo@511 | 41 ln -s libnewt.so.0.52.1 libnewt.so.0.52 |
erjo@586 | 42 strip -s $fs/usr/lib/* |
erjo@511 | 43 } |
erjo@511 | 44 |