wok annotate newt/receipt @ rev 21747

tazboot: spare 2k
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 14 17:17:16 2019 +0200 (2019-06-14)
parents 200d202603ff
children 08707fe48dcf
rev   line source
erjo@511 1 # SliTaz package receipt.
erjo@511 2
erjo@511 3 PACKAGE="newt"
Hans-G?nter@21540 4 VERSION="0.52.20"
erjo@511 5 CATEGORY="development"
Hans-G?nter@21540 6 SHORT_DESC="Not Erik's Windowing Toolkit."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15584 8 LICENSE="GPL2"
Hans-G?nter@21540 9 WEB_SITE="https://pagure.io/newt/"
Hans-G?nter@21540 10
erjo@511 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21540 12 WGET_URL="https://releases.pagure.org/$PACKAGE/$TARBALL"
erjo@511 13
Hans-G?nter@21540 14 DEPENDS="popt slang tcl"
Hans-G?nter@21540 15 BUILD_DEPENDS="popt-dev python-dev slang-dev tcl"
pascal@15584 16
erjo@511 17 # Rules to configure and make the package.
erjo@511 18 compile_rules()
erjo@511 19 {
pascal@5709 20 python=$(ls -d /usr/lib/python*/ | sed 's|/usr/lib/\(.*\)/|\1|' | head -1)
pascal@3134 21 tcl=$(ls /usr/lib/libtcl*.so | sed 's|/usr/lib/lib\(.*\).so|\1|')
pascal@3134 22
pascal@3134 23 echo "Patching for $python and $tcl..."
pascal@3134 24 sed -i -e "s/python2.4/$python/" \
pascal@3134 25 -e "s/tcl8.4/$tcl/" \
pascal@2506 26 Makefile.in
Hans-G?nter@21540 27
Hans-G?nter@21540 28 ./configure \
Hans-G?nter@21540 29 --prefix=/usr \
Hans-G?nter@21540 30 --infodir=/usr/share/info \
Hans-G?nter@21540 31 --mandir=/usr/share/man \
Hans-G?nter@21540 32 $CONFIGURE_ARGS &&
pascal@1511 33 make &&
pascal@15585 34 make instroot=$DESTDIR install
erjo@511 35 }
erjo@511 36
erjo@511 37 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@511 38 genpkg_rules()
erjo@511 39 {
erjo@511 40 mkdir -p $fs/usr/lib
Hans-G?nter@21540 41
Hans-G?nter@21540 42 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21540 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21540 44 cp -a $install/usr/lib/python* $fs/usr/lib
erjo@511 45 }