wok-4.x annotate nbs/receipt @ rev 7445

Up: libsoup to 2.32.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Nov 30 01:56:17 2010 +0000 (2010-11-30)
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