[arch-commits] Commit in python-oset/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 16:14:50 UTC 2019
Date: Friday, October 25, 2019 @ 16:14:49
Author: foutrelis
Revision: 519423
archrelease: copy trunk to community-staging-any
Added:
python-oset/repos/community-staging-any/
python-oset/repos/community-staging-any/PKGBUILD
(from rev 519422, python-oset/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-oset/repos/community-staging-any/PKGBUILD (from rev 519422, python-oset/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:14:49 UTC (rev 519423)
@@ -0,0 +1,37 @@
+# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+
+pkgbase=python-oset
+pkgname=(python-oset python2-oset)
+pkgver=0.1.3
+pkgrel=3
+pkgdesc="Ordered sets for Python"
+arch=('any')
+url="https://pypi.org/project/oset/"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/o/oset/oset-$pkgver.tar.gz")
+sha256sums=('4c1fd7dec96eeff9d3260995a8e37f9f415d0bdb79975f57824e68716ac8f904')
+
+prepare() {
+ cp -a "$srcdir"/oset-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/oset-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/oset-$pkgver-py2"
+ python2 setup.py build
+}
+
+package_python-oset() {
+ cd "$srcdir/oset-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-oset() {
+ cd "$srcdir/oset-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list