wok annotate nbs/receipt @ rev 2355

Up: curl (7.19.4)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Mar 05 11:38:09 2009 +0100 (2009-03-05)
parents 4b4c6b703ace
children bee79018e13a
rev   line source
pascal@1182 1 # SliTaz package receipt.
pascal@1182 2
pascal@1182 3 PACKAGE="nbs"
pascal@1182 4 VERSION="2007svn"
pascal@1182 5 CATEGORY="network"
pascal@1182 6 SHORT_DESC="Network Broadcast Sound."
pascal@1182 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1182 8 WEB_SITE="http://svn.digium.com/view/nbs"
pascal@1182 9
pascal@1182 10 # Rules to configure and make the package.
pascal@1182 11 compile_rules()
pascal@1182 12 {
pascal@1182 13 mkdir $src
pascal@1182 14 cd $src
pascal@1182 15 for i in Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c; do
pascal@1182 16 [ -f $i ] && continue
pascal@1554 17 wget http://svn.digium.com/view/nbs/trunk/$i?view=co || return 1
pascal@1182 18 mv $i\?view=co $i
pascal@1182 19 [ -f ../stuff/$i.u ] && patch -p0 < ../stuff/$i.u
pascal@1182 20 done
pascal@1554 21 make &&
pascal@1182 22 make DESTDIR=$PWD/_pkg install
pascal@1182 23 }
pascal@1182 24
pascal@1182 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1182 26 genpkg_rules()
pascal@1182 27 {
pascal@1182 28 mkdir -p $fs/usr/lib
pascal@1182 29 cp -a $_pkg/usr/bin $fs/usr
pascal@1182 30 cp -a $_pkg/usr/sbin $fs/usr
pascal@1182 31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pascal@1182 32 ln -s libnbs.so.1.0 $fs/usr/lib/libnbs.so.1
pascal@1182 33 # Package all nbs pkgs
pascal@1182 34 for i in $(cd $WOK; ls -d nbs-*)
pascal@1182 35 do
pascal@1182 36 tazwok genpkg $i
pascal@1182 37 done
pascal@1182 38 }
pascal@1182 39