summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9fbc2c6ed9d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Butui Hu <hot123tea123@gmail.com>
+
+pkgname=python-multimethod
+_pkgname=multimethod
+pkgver=1.4
+pkgrel=1
+pkgdesc='Multiple argument dispatching'
+arch=('any')
+url='https://github.com/coady/multimethod'
+license=('Apache')
+depends=(
+ python
+)
+makedepends=(
+ python-setuptools
+)
+checkdepends=(
+ python-pytest
+ python-pytest-cov
+)
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/coady/multimethod/archive/v${pkgver}.tar.gz")
+sha512sums=('de83730b711e6bb70f7574ef30e6f09c3b8ad5529905a8ab39d1a5895bd8ac8302fc14c0e9da0d4965f1d385cbdad357fbc8d9d98dc46430734b06aac5263cb8')
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+# PYTHONPATH="${PWD}/build/lib" pytest -v
+ pytest -v
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+# vim:set ts=2 sw=2 et: