wok-current rev 8564

imported patch get/nbs
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Feb 13 22:57:56 2011 +0100 (2011-02-13)
parents 1d765f8acefe
children 8fed7e596e79
files nbs/receipt
line diff
     1.1 --- a/nbs/receipt	Sun Feb 13 22:57:56 2011 +0100
     1.2 +++ b/nbs/receipt	Sun Feb 13 22:57:56 2011 +0100
     1.3 @@ -5,26 +5,16 @@
     1.4  CATEGORY="network"
     1.5  SHORT_DESC="Network Broadcast Sound."
     1.6  MAINTAINER="pascal.bellard@slitaz.org"
     1.7 +BUILD_DEPENDS="subversion"
     1.8  WEB_SITE="http://svn.digium.com/view/nbs"
     1.9 +WGET_URL="subversion|http://svn.digium.com/svn/nbs/trunk"
    1.10  
    1.11  
    1.12  # Rules to configure and make the package.
    1.13  compile_rules()
    1.14  {
    1.15 -	mkdir $src
    1.16  	cd $src
    1.17 -	TARBALL=$PACKAGE-$VERSION.tar.gz
    1.18 -	[ -f $SOURCES_REPOSITORY/$TARBALL ] && 
    1.19 -		tar xzf $SOURCES_REPOSITORY/$TARBALL
    1.20 -	for i in Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c; do
    1.21 -		[ -f $i ] && continue
    1.22 -		wget http://svn.digium.com/view/nbs/trunk/$i?view=co || return 1
    1.23 -		mv $i\?view=co $i
    1.24 -		[ -f ../stuff/$i.u ] && patch -p0 <  ../stuff/$i.u
    1.25 -	done
    1.26 -	[ -f $SOURCES_REPOSITORY/$TARBALL ] ||
    1.27 -		tar cvzf $SOURCES_REPOSITORY/$TARBALL \
    1.28 -			Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c
    1.29 +	patch -p0 <  ../stuff/Makefile.u &&
    1.30  	make &&
    1.31  	make DESTDIR=$PWD/_pkg install
    1.32  }