summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorclintval2018-01-30 20:09:42 -0800
committerclintval2018-01-30 20:09:42 -0800
commit611fd64234154142d75de9843cffa43e1e7a0ee5 (patch)
tree75af643325404e29e210126be8c310039ae4b083
downloadaur-python-crimson.tar.gz
First commit with PKGBUILD and .SRCINFO
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD45
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..856a3251e71
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = python-crimson
+ pkgdesc = Bioinformatics tool outputs converter to JSON or YAML
+ pkgver = 0.3.0
+ pkgrel = 1
+ url = https://pypi.python.org/pypi/crimson
+ arch = any
+ license = BSD
+ makedepends = python
+ makedepends = python-setuptools
+ makedepends = python2-wheel
+ makedepends = python2
+ makedepends = python2-setuptools
+ makedepends = python-wheel
+ options = !emptydirs
+ source = python-crimson-0.3.0.tar.gz::https://pypi.python.org/packages/bf/8e/cdddc397f92fc1199195f01446bd3407dcb6f6ab8983f32a5e8798348809/Crimson-0.3.0.tar.gz
+ sha256sums = 7f78aca574cc9be93ca61baa91873867b40254441b77dddf86099b9071623a9b
+
+pkgname = python-crimson
+ depends = python
+ depends = python-click
+ depends = python-yaml
+
+pkgname = python2-crimson
+ depends = python2
+ depends = python2-click
+ depends = python2-yaml
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..23a6107b0fc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Clint Valentine <valentine.clint@gmail.com>
+
+_name=Crimson
+pkgbase='python-crimson'
+pkgname=('python-crimson' 'python2-crimson')
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="Bioinformatics tool outputs converter to JSON or YAML"
+arch=('any')
+url="https://pypi.python.org/pypi/crimson"
+license=('BSD')
+makedepends=(
+ 'python' 'python-setuptools' 'python2-wheel'
+ 'python2' 'python2-setuptools' 'python-wheel')
+options=(!emptydirs)
+source=("${pkgname}"-"${pkgver}".tar.gz::https://pypi.python.org/packages/bf/8e/cdddc397f92fc1199195f01446bd3407dcb6f6ab8983f32a5e8798348809/Crimson-0.3.0.tar.gz)
+sha256sums=('7f78aca574cc9be93ca61baa91873867b40254441b77dddf86099b9071623a9b')
+
+prepare() {
+ cp -a "${_name}"-"${pkgver}"{,-py2}
+}
+
+build(){
+ cd "${srcdir}"/"${_name}"-"${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}"/"${_name}"-"${pkgver}"-py2
+ python2 setup.py build
+}
+
+package_python2-crimson() {
+ depends=('python2' 'python2-click' 'python2-yaml')
+
+ cd "${_name}"-"${pkgver}"-py2
+ python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+}
+
+package_python-crimson() {
+ depends=('python' 'python-click' 'python-yaml')
+
+ cd "${_name}"-"${pkgver}"
+ python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
+}