mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
51 lines
1.3 KiB
Bash
51 lines
1.3 KiB
Bash
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
|
|
|
|
plugrel=1
|
|
|
|
pkgname=minidlna-cvs
|
|
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
|
|
}
|
|
|