# SliTaz package receipt. PACKAGE="newt" VERSION="0.52.2" CATEGORY="development" SHORT_DESC="Not Erik's Windowing Toolkit" MAINTAINER="erjo@slitaz.org" DEPENDS="slang popt" BUILD_DEPENDS="slang-dev tcl popt-dev python-dev" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://packages.debian.org/etch/libnewt0.52" WGET_URL="http://mirror.pimentvert.com/sources/newt/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $src # Fixe group/owner chown -R root.root $src sed -i -e "s/python2.4/$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|')" \ -e "s/tcl8.4/$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')/" \ Makefile.in ./configure --prefix=/usr --infodir=/usr/share/info \ --mandir=/usr/share/man $CONFIGURE_ARGS && make && make instroot=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/lib/*.so* $fs/usr/lib cp -a $_pkg/usr/lib/python* $fs/usr/lib # Bug fix cd $fs/usr/lib ln -s libnewt.so.0.52.1 libnewt.so.0.52 strip -s $fs/usr/lib/* }