[arch-commits] Commit in python-whelk/repos (community-any community-any/PKGBUILD)
Felix Yan
fyan at archlinux.org
Sat May 14 02:49:57 UTC 2016
Date: Saturday, May 14, 2016 @ 04:49:57
Author: fyan
Revision: 175301
archrelease: copy trunk to community-any
Added:
python-whelk/repos/community-any/
python-whelk/repos/community-any/PKGBUILD
(from rev 175300, python-whelk/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-whelk/repos/community-any/PKGBUILD (from rev 175300, python-whelk/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2016-05-14 02:49:57 UTC (rev 175301)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-whelk
+pkgname=('python-whelk' 'python2-whelk')
+pkgver=2.6
+pkgrel=1
+pkgdesc="Easy access to shell commands from python"
+arch=('any')
+license=('custom:zlib')
+url="https://pypi.python.org/pypi/whelk"
+makedepends=('python' 'python2' 'git')
+source=("git+https://github.com/seveas/whelk.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a whelk{,-py2}
+}
+
+build() {
+ cd "$srcdir"/whelk
+ python setup.py build
+
+ cd "$srcdir"/whelk-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/whelk
+ python -munittest discover
+
+ cd "$srcdir"/whelk-py2
+ python2 -munittest discover
+}
+
+package_python-whelk() {
+ depends=('python')
+
+ cd whelk
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+package_python2-whelk() {
+ depends=('python2')
+
+ cd whelk-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
More information about the arch-commits
mailing list