summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hsuan Yen2018-07-28 00:42:43 +0800
committerChih-Hsuan Yen2018-07-28 00:42:43 +0800
commitdc4060b8cde82656e33cd275e1ad3ca182814444 (patch)
tree57e09f9f59a407bc1fc3fcb07a4ee9978a790e4b
downloadaur-dc4060b8cde82656e33cd275e1ad3ca182814444.tar.gz
new package; for pyjade -> pyramid
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD41
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c4fa0c61ee0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = python-plaster
+ pkgdesc = A loader interface around multiple config file formats.
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://github.com/Pylons/plaster
+ arch = any
+ license = MIT
+ checkdepends = python-pytest-runner
+ checkdepends = python2-pytest-runner
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://pypi.org/packages/source/p/plaster/plaster-1.0.tar.gz
+ sha256sums = 8351c7c7efdf33084c1de88dd0f422cbe7342534537b553c49b857b12d98c8c3
+
+pkgname = python-plaster
+ depends = python-setuptools
+
+pkgname = python2-plaster
+ depends = python2-setuptools
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dae9681d7fd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+pkgbase=python-plaster
+pkgname=(python-plaster python2-plaster)
+pkgver=1.0
+_distname=plaster-$pkgver
+pkgrel=1
+pkgdesc="A loader interface around multiple config file formats."
+arch=('any')
+url="https://github.com/Pylons/plaster"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=(https://pypi.org/packages/source/p/plaster/plaster-${pkgver}.tar.gz)
+sha256sums=('8351c7c7efdf33084c1de88dd0f422cbe7342534537b553c49b857b12d98c8c3')
+
+prepare() {
+ cp -r ${_distname}{,-py2}
+}
+
+check() {
+ cd "$srcdir"/$_distname
+ python setup.py pytest -v
+
+ cd "$srcdir"/$_distname
+ python2 setup.py pytest -v
+}
+
+package_python-plaster() {
+ depends=('python-setuptools')
+ cd $_distname
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -Ddm755 "$pkgdir"/usr/share/licenses/$pkgname
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+package_python2-plaster() {
+ depends=('python2-setuptools')
+ cd "$_distname-py2"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -Ddm755 "$pkgdir"/usr/share/licenses/$pkgname
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/
+}