wok-next view nbs/receipt @ rev 6705

Up: libsndfile to 1.0.23.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Oct 13 22:01:19 2010 +0000 (2010-10-13)
parents bee79018e13a
children 53e1828da719
line source
1 # SliTaz package receipt.
3 PACKAGE="nbs"
4 VERSION="2007svn"
5 CATEGORY="network"
6 SHORT_DESC="Network Broadcast Sound."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://svn.digium.com/view/nbs"
11 # Rules to configure and make the package.
12 compile_rules()
13 {
14 mkdir $src
15 cd $src
16 TARBALL=$PACKAGE-$VERSION.tar.gz
17 [ -f $SOURCES_REPOSITORY/$TARBALL ] &&
18 tar xzf $SOURCES_REPOSITORY/$TARBALL
19 for i in Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c; do
20 [ -f $i ] && continue
21 wget http://svn.digium.com/view/nbs/trunk/$i?view=co || return 1
22 mv $i\?view=co $i
23 [ -f ../stuff/$i.u ] && patch -p0 < ../stuff/$i.u
24 done
25 [ -f $SOURCES_REPOSITORY/$TARBALL ] ||
26 tar cvzf $SOURCES_REPOSITORY/$TARBALL \
27 Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/sbin $fs/usr
38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
39 ln -s libnbs.so.1.0 $fs/usr/lib/libnbs.so.1
40 # Package all nbs pkgs
41 for i in $(cd $WOK; ls -d nbs-*)
42 do
43 tazwok genpkg $i
44 done
45 }