wok diff nbs/receipt @ rev 1300

busybox/tar: -j -a -z -Z support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 22 15:27:31 2008 +0000 (2008-08-22)
parents
children 26b57ae6bfb0
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nbs/receipt	Fri Aug 22 15:27:31 2008 +0000
     1.3 @@ -0,0 +1,39 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nbs"
     1.7 +VERSION="2007svn"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Network Broadcast Sound."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://svn.digium.com/view/nbs"
    1.12 +
    1.13 +# Rules to configure and make the package.
    1.14 +compile_rules()
    1.15 +{
    1.16 +	mkdir $src
    1.17 +	cd $src
    1.18 +	for i in Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c; do
    1.19 +		[ -f $i ] && continue
    1.20 +		wget http://svn.digium.com/view/nbs/trunk/$i?view=co
    1.21 +		mv $i\?view=co $i
    1.22 +		[ -f ../stuff/$i.u ] && patch -p0 <  ../stuff/$i.u
    1.23 +	done
    1.24 +	make
    1.25 +	make DESTDIR=$PWD/_pkg install
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +	mkdir -p $fs/usr/lib
    1.32 +	cp -a $_pkg/usr/bin $fs/usr
    1.33 +	cp -a $_pkg/usr/sbin $fs/usr
    1.34 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.35 +	ln -s libnbs.so.1.0 $fs/usr/lib/libnbs.so.1
    1.36 +	# Package all nbs pkgs
    1.37 +	for i in $(cd $WOK; ls -d nbs-*)
    1.38 +	do
    1.39 +		tazwok genpkg $i
    1.40 +	done
    1.41 +}
    1.42 +