summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD28
2 files changed, 14 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9de3a0eb11a..1a802e48f52 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = ghmm-svn
pkgdesc = General Hidden Markov Model library
- pkgver = 2290
- pkgrel = 2
+ pkgver = 2293
+ pkgrel = 1
url = http://ghmm.org
arch = i686
arch = x86_64
@@ -15,6 +15,8 @@ pkgbase = ghmm-svn
optdepends = python2
provides = ghmm
conflicts = ghmm
+ source = ghmm-svn::svn+https://ghmm.svn.sourceforge.net/svnroot/ghmm/trunk/ghmm
+ md5sums = SKIP
pkgname = ghmm-svn
diff --git a/PKGBUILD b/PKGBUILD
index 357b73a5392..27c40729b9e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
# Contributor: dave pretty <david (dot) pretty (at) gmail (dot) com >
pkgname=ghmm-svn
-pkgver=2290
-pkgrel=2
+pkgver=2293
+pkgrel=1
pkgdesc="General Hidden Markov Model library"
arch=('i686' 'x86_64')
url="http://ghmm.org"
@@ -13,30 +13,22 @@ makedepends=('automake' 'autoconf' 'm4' 'swig')
optdepends=('python2')
conflicts=('ghmm')
provides=('ghmm')
+source=("$pkgname::svn+https://ghmm.svn.sourceforge.net/svnroot/ghmm/trunk/ghmm")
+md5sums=('SKIP')
-_svntrunk=https://ghmm.svn.sourceforge.net/svnroot/ghmm/trunk/ghmm
-_svnmod=ghmm
+pkgver() {
+ cd "$srcdir/$pkgname"
+ svnversion | tr -d [A-z]
+}
build() {
- cd "$srcdir"
-
- if [ -d $_svnmod/.svn ]; then
- (cd $_svnmod && svn up)
- else
- svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
- fi
-
- msg "SVN checkout done or server timeout"
- msg "Starting make..."
-
- cd "$_svnmod"
+ cd "$srcdir/$pkgname"
./autogen.sh
PYTHON=/usr/bin/python2 ./configure --prefix=/usr
make
-
}
package() {
- cd "$srcdir/$_svnmod"
+ cd "$srcdir/$pkgname"
make prefix="$pkgdir/usr" install # does not support DESTDIR
}