PKGBUILDs/aur/minidlna-cvs/PKGBUILD

52 lines
1.3 KiB
Bash
Raw Normal View History

# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
plugrel=1
pkgname=minidlna-cvs
2011-06-09 21:36:15 +00:00
pkgver=20110609
pkgrel=1
pkgdesc="A DLNA/UPnP-AV Media server (aka ReadyDLNA)"
arch=('i686' 'x86_64')
url="http://minidlna.sourceforge.net/"
license=('BSD' 'GPL')
depends=('sqlite3' 'libjpeg' 'libexif' 'libid3tag' 'libvorbis' 'flac' 'ffmpeg' 'util-linux-ng' 'ffmpegthumbnailer')
makedepends=('cvs')
optdepends=()
conflicts=('minidlna' 'minidlna-cvs-samsung')
options=()
install=${pkgname}.install
backup=('etc/minidlna.conf')
source=(minidlna.rc.d.script \
minidlna-cvs.install)
md5sums=('f33035ea37dd5102d7b13ed8d8018486' \
'f2b79b4fe2b8f1df5a335900e1e00c5a')
_cvsroot=":pserver:anonymous:@minidlna.cvs.sourceforge.net:/cvsroot/minidlna"
_cvsmod="minidlna"
build() {
cd $srcdir
msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
if [ -d ${_cvsmod}/CVS ]; then
cd $_cvsmod
cvs -z3 update -d
else
cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
cd $_cvsmod
fi
msg "CVS checkout done or server timeout"
msg "Starting make..."
rm -rf "${srcdir}/${_cvsmod}-build"
cp -r "${srcdir}/${_cvsmod}" "${srcdir}/${_cvsmod}-build"
cd "${srcdir}/${_cvsmod}-build"
make || return 1
make DESTDIR=$pkgdir install
install -D -m 755 ${srcdir}/minidlna.rc.d.script ${pkgdir}/etc/rc.d/minidlna
}