commit 02f4b6296e27e963486b80cb5bafdc7a80f5e49d Author: Jaroslav Lichtblau Date: Fri Nov 28 20:17:14 2014 +0100 Initial PKGBUILD status as of 28.11.2014 diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0f0541267775 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = evad-svn + pkgdesc = SVN version of a text-based client to the powerful MPD music server. + pkgver = 112 + pkgrel = 1 + url = http://sourceforge.net/projects/evad/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = subversion + depends = python2 + depends = mpd + provides = evad + conflicts = evad + +pkgname = evad-svn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..68eda21a659e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Contributor: Jaroslav Lichtblau + +pkgname=evad-svn +pkgver=112 +pkgrel=1 +pkgdesc="SVN version of a text-based client to the powerful MPD music server." +arch=('i686' 'x86_64') +url="http://sourceforge.net/projects/evad/" +license=('GPL') +depends=('python2' 'mpd') +makedepends=('subversion') +provides=('evad') +conflicts=('evad') +source=() +md5sums=() + +_svntrunk=http://evad.svn.sourceforge.net/svnroot/evad/trunk +_svnmod=evad + +prepare() { + cd ${srcdir} + + if [ -d $_svnmod/.svn ]; then + (cd $_svnmod && svn up -r $pkgver) + else + svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod + fi + + msg "SVN checkout done or server timeout" + msg "Starting make..." + + if [ -d $_svnmod-build ]; then + (rm -r ${srcdir}/$_svnmod-build && cp -r $_svnmod $_svnmod-build) + else + cp -r $_svnmod $_svnmod-build + fi +} + +package() { + cd ${srcdir}/$_svnmod-build + + python2 setup.py install --root=${pkgdir} +}