wok-next annotate nbs/receipt @ rev 7482

modify .desktop of 3 file
author fireflyoo <lufeng369@gmail.com>
date Fri Dec 03 00:24:35 2010 +0800 (2010-12-03)
parents b4b992b90e4a
children 23b7c2a99749
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
jozee@4969 10
pascal@1182 11 # Rules to configure and make the package.
pascal@1182 12 compile_rules()
pascal@1182 13 {
pascal@1182 14 mkdir $src
pascal@1182 15 cd $src
pascal@5553 16 TARBALL=$PACKAGE-$VERSION.tar.gz
pascal@5553 17 [ -f $SOURCES_REPOSITORY/$TARBALL ] &&
pascal@5553 18 tar xzf $SOURCES_REPOSITORY/$TARBALL
pascal@1182 19 for i in Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c; do
pascal@1182 20 [ -f $i ] && continue
pascal@1554 21 wget http://svn.digium.com/view/nbs/trunk/$i?view=co || return 1
pascal@1182 22 mv $i\?view=co $i
pascal@1182 23 [ -f ../stuff/$i.u ] && patch -p0 < ../stuff/$i.u
pascal@1182 24 done
pascal@5553 25 [ -f $SOURCES_REPOSITORY/$TARBALL ] ||
pascal@5553 26 tar cvzf $SOURCES_REPOSITORY/$TARBALL \
pascal@5553 27 Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c
pascal@1554 28 make &&
pascal@1182 29 make DESTDIR=$PWD/_pkg install
pascal@1182 30 }
pascal@1182 31
pascal@1182 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1182 33 genpkg_rules()
pascal@1182 34 {
pascal@1182 35 mkdir -p $fs/usr/lib
pascal@1182 36 cp -a $_pkg/usr/bin $fs/usr
pascal@1182 37 cp -a $_pkg/usr/sbin $fs/usr
pascal@1182 38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pascal@1182 39 ln -s libnbs.so.1.0 $fs/usr/lib/libnbs.so.1
pascal@1182 40 }
pascal@1182 41