wok-4.x annotate newt/receipt @ rev 8392
Added SRC_WANTED to linux-api-headers.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Feb 04 18:55:13 2011 +0000 (2011-02-04) |
parents | 0548ca2d9e6e |
children | aa91b84f09b3 |
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@5709 | 22 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1) |
pascal@3134 | 23 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|') |
pascal@3134 | 24 |
pascal@3134 | 25 echo "Patching for $python and $tcl..." |
pascal@3134 | 26 sed -i -e "s/python2.4/$python/" \ |
pascal@3134 | 27 -e "s/tcl8.4/$tcl/" \ |
pascal@2506 | 28 Makefile.in |
erjo@511 | 29 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1511 | 30 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1511 | 31 make && |
erjo@511 | 32 make instroot=$PWD/_pkg install |
erjo@511 | 33 } |
erjo@511 | 34 |
erjo@511 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@511 | 36 genpkg_rules() |
erjo@511 | 37 { |
erjo@511 | 38 mkdir -p $fs/usr/lib |
erjo@511 | 39 cp -a $_pkg/usr/bin $fs/usr |
erjo@511 | 40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
erjo@511 | 41 cp -a $_pkg/usr/lib/python* $fs/usr/lib |
erjo@511 | 42 |
erjo@511 | 43 # Bug fix |
erjo@511 | 44 cd $fs/usr/lib |
erjo@511 | 45 ln -s libnewt.so.0.52.1 libnewt.so.0.52 |
erjo@586 | 46 strip -s $fs/usr/lib/* |
erjo@511 | 47 } |
erjo@511 | 48 |