mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
|
|
|
|
plugrel=1
|
|
|
|
pkgname=minidlna-cvs-samsung
|
|
pkgver=20110211
|
|
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')
|
|
options=()
|
|
install=${pkgname}.install
|
|
backup=('etc/minidlna.conf')
|
|
source=(minidlna.rc.d.script \
|
|
minidlna-cvs-samsung.install \
|
|
minidlna.samsung-new.patch)
|
|
md5sums=('f33035ea37dd5102d7b13ed8d8018486' \
|
|
'f2b79b4fe2b8f1df5a335900e1e00c5a' \
|
|
'69a8d5ebe194de7f52a920618c793c54')
|
|
|
|
_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..."
|
|
patch -Np1 -i ${srcdir}/minidlna.samsung-new.patch
|
|
|
|
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
|
|
}
|
|
|