summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD39
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5e6508a30a3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-multimethod
+ pkgdesc = Multiple argument dispatching
+ pkgver = 1.4
+ pkgrel = 1
+ url = https://github.com/coady/multimethod
+ arch = any
+ license = Apache
+ checkdepends = python-pytest
+ checkdepends = python-pytest-cov
+ makedepends = python-setuptools
+ depends = python
+ source = multimethod-1.4.tar.gz::https://github.com/coady/multimethod/archive/v1.4.tar.gz
+ sha512sums = de83730b711e6bb70f7574ef30e6f09c3b8ad5529905a8ab39d1a5895bd8ac8302fc14c0e9da0d4965f1d385cbdad357fbc8d9d98dc46430734b06aac5263cb8
+
+pkgname = python-multimethod
+
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: