wok-next diff stfl/receipt @ rev 19856

Up dbus, lxdm, slitaz-configs, syslinux-slitaz-repack; add slitaz-next with all the Next-related hotfixes.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Sep 07 15:25:51 2017 +0300 (2017-09-07)
parents 6602a4a78b5f
children c3a368c0cddb
line diff
     1.1 --- a/stfl/receipt	Tue Oct 27 09:24:12 2015 +0100
     1.2 +++ b/stfl/receipt	Thu Sep 07 15:25:51 2017 +0300
     1.3 @@ -1,16 +1,18 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="stfl"
     1.8  VERSION="0.24"
     1.9  CATEGORY="base-system"
    1.10 -SHORT_DESC="Structured Terminal Forms Language/Library."
    1.11 +SHORT_DESC="Structured Terminal Forms Language/Library"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="LGPL3"
    1.14 +WEB_SITE="http://www.clifford.at/stfl/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://www.clifford.at/stfl/"
    1.18  WGET_URL="$WEB_SITE$TARBALL"
    1.19  
    1.20 -BUILD_DEPENDS="ncursesw-dev swig python-dev"
    1.21 +BUILD_DEPENDS="ncurses-dev swig python-dev"
    1.22 +SPLIT="stfl-python stfl-dev"
    1.23  
    1.24  # Rules to configure and make the package.
    1.25  compile_rules()
    1.26 @@ -18,16 +20,28 @@
    1.27  	sed -i 's|/usr/local|/usr|' Makefile.cfg
    1.28  	sed -i 's|ncursesw/ncurses.h|ncurses.h|' stfl_internals.h
    1.29  	sed -i 's|^include Makefile.deps|-&|' Makefile
    1.30 -	make -j 1 &&
    1.31 -	make -j 1 DESTDIR=$DESTDIR install
    1.32 +
    1.33 +	make -j1 &&
    1.34 +	make -j1 DESTDIR=$DESTDIR install
    1.35 +
    1.36 +	ln -s libstfl.so.$VERSION $install/usr/lib/libstfl.so.0
    1.37  }
    1.38  
    1.39  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.40  genpkg_rules()
    1.41  {
    1.42 -	mkdir -p $fs/usr/lib
    1.43 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.44 -	lib=$(cd $fs/usr/lib ; echo *.so.*.*)
    1.45 -	[ -e $fs/usr/lib/${lib%.*} ] ||
    1.46 -	ln -s $lib $fs/usr/lib/${lib%.*}
    1.47 +	case $PACKAGE in
    1.48 +		stfl)
    1.49 +			copy libstfl.so*
    1.50 +			DEPENDS="ncurses"
    1.51 +			;;
    1.52 +		*-python)
    1.53 +			copy python*/
    1.54 +			DEPENDS="ncurses python"
    1.55 +			;;
    1.56 +		*-dev)
    1.57 +			copy @dev
    1.58 +			DEPENDS="stfl stfl-python ncurses-dev"
    1.59 +			;;
    1.60 +	esac
    1.61  }