wok-stable annotate nbs/receipt @ rev 5169
xarchiver: Fix DEPENDS (#278)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Mar 26 22:44:26 2010 +0100 (2010-03-26) |
parents | 26b57ae6bfb0 |
children | b4b992b90e4a |
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@1182 | 16 for i in Makefile nbs.h nbscat.c nbscat8k nbsclient.c nbsd.c; do |
pascal@1182 | 17 [ -f $i ] && continue |
pascal@1554 | 18 wget http://svn.digium.com/view/nbs/trunk/$i?view=co || return 1 |
pascal@1182 | 19 mv $i\?view=co $i |
pascal@1182 | 20 [ -f ../stuff/$i.u ] && patch -p0 < ../stuff/$i.u |
pascal@1182 | 21 done |
pascal@1554 | 22 make && |
pascal@1182 | 23 make DESTDIR=$PWD/_pkg install |
pascal@1182 | 24 } |
pascal@1182 | 25 |
pascal@1182 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1182 | 27 genpkg_rules() |
pascal@1182 | 28 { |
pascal@1182 | 29 mkdir -p $fs/usr/lib |
pascal@1182 | 30 cp -a $_pkg/usr/bin $fs/usr |
pascal@1182 | 31 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1182 | 32 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pascal@1182 | 33 ln -s libnbs.so.1.0 $fs/usr/lib/libnbs.so.1 |
pascal@1182 | 34 # Package all nbs pkgs |
pascal@1182 | 35 for i in $(cd $WOK; ls -d nbs-*) |
pascal@1182 | 36 do |
pascal@1182 | 37 tazwok genpkg $i |
pascal@1182 | 38 done |
pascal@1182 | 39 } |
pascal@1182 | 40 |