diff options
author | Martino Pilia | 2018-05-08 16:14:09 +0200 |
---|---|---|
committer | Martino Pilia | 2018-05-08 16:14:09 +0200 |
commit | 31dd96a9beb96b0c77a155614507f61dab2faa8d (patch) | |
tree | b85d101a9ae2c1fbf86dd2ef631255597bfaff0c | |
download | aur-31dd96a9beb96b0c77a155614507f61dab2faa8d.tar.gz |
package submission
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4b3e1142a2bd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-pydensecrf-git + pkgdesc = Python wrapper to Philipp Krähenbühl's dense CRFs with Gaussian edge potentials + pkgver = r82.0632813 + pkgrel = 1 + url = https://github.com/lucasb-eyer/pydensecrf + arch = any + license = MIT + makedepends = python-setuptools + makedepends = cython + makedepends = git + depends = python-numpy + source = git+https://github.com/lucasb-eyer/pydensecrf.git + sha512sums = SKIP + +pkgname = python-pydensecrf-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c037da00fb18 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com> +_pkgname=pydensecrf +pkgname=python-$_pkgname-git +pkgver=r82.0632813 +pkgrel=1 +pkgdesc="Python wrapper to Philipp Krähenbühl's dense CRFs with Gaussian edge potentials" +arch=('any') +url="https://github.com/lucasb-eyer/pydensecrf" +license=('MIT') +depends=('python-numpy') +optdepends=() +makedepends=('python-setuptools' 'cython' 'git') +source=("git+${url}.git") +sha512sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$_pkgname" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + python setup.py install --optimize=1 --root="$pkgdir" +} |