summaryrefslogtreecommitdiff
path: root/gnump3d/Pkgfile
blob: cde7aeb492abe19885b6ce0bdf7dd3a0fb851f6a (plain)
    1 # Description: The GNU Streaming MP3 / Media Server
    2 # URL:         http://www.gnump3d.org
    3 # Maintainer: unmaintained
    4 # Packager:    Olle Gustafsson, ogg at linux dot se
    5 #
    6 # Depends on:  perl
    7 
    8 name=gnump3d
    9 version=2.9.9.9
   10 release=1
   11 source=(http://savannah.gnu.org/download/$name/$name-$version.tar.bz2
   12         gnump3d.rc)
   13 
   14 build () {
   15 	PERLLIBDIR=`perl $SRC/$name-$version/bin/getlibdir`
   16 	echo $PERLLIBDIR
   17 	cd $name-$version
   18 	mkdir -p $PKG/usr/lib/$name/plugins \
   19 		$PKG/usr/{bin,share/$name} \
   20 		$PKG/usr/man/man1 \
   21 		$PKG/var/log/$name \
   22 		$PKG/var/cache/{$name,$name/serving} \
   23 		$PKG/etc/$name \
   24 		$PKG/etc/rc.d \
   25 		$PKG/$PERLLIBDIR/{$name,$name/lang}
   26 	install -m 644 lib/$name/*.pm $PKG/$PERLLIBDIR/$name
   27 	install -m 644 lib/$name/plugins/*.pm $PKG/usr/lib/$name/plugins
   28 	install -m 644 lib/$name/lang/*.pm $PKG/$PERLLIBDIR/$name/lang
   29 	install -m 755 bin/* $PKG/usr/bin
   30 	install -m 644 man/* $PKG/usr/man/man1
   31 	install -m 644 etc/mime.types $PKG/etc/$name
   32 	cp -R templates/* $PKG/usr/share/$name
   33 	cd $PKG/usr/bin/ && ln -s gnump3d2 gnump3d
   34 	chmod 777 $PKG/var/cache/{$name,$name/serving}
   35 	sed "s#PLUGINDIR#/usr/lib#g" $SRC/$name-$version/etc/$name.conf > $PKG/etc/$name/$name.conf
   36 	touch $PKG/var/cache/gnump3d/song.tags
   37 	install -m 755 $SRC/gnump3d.rc $PKG/etc/rc.d/$name
   38 	chown -R root:root $PKG
   39 }

Generated by cgit