[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Fri May 29 13:18:54 UTC 2020


    Date: Friday, May 29, 2020 @ 13:18:54
  Author: felixonmars
Revision: 637059

addpkg: python-py3c 1.1-1

Added:
  python-py3c/
  python-py3c/repos/
  python-py3c/trunk/
  python-py3c/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Added: python-py3c/trunk/PKGBUILD
===================================================================
--- python-py3c/trunk/PKGBUILD	                        (rev 0)
+++ python-py3c/trunk/PKGBUILD	2020-05-29 13:18:54 UTC (rev 637059)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-py3c
+pkgver=1.1
+pkgrel=1
+pkgdesc="A Python 2/3 compatibility layer for C extensions"
+url="https://github.com/encukou/py3c"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/encukou/py3c/archive/v$pkgver.tar.gz")
+sha512sums=('aa95bbe1a80eec9e32d3dab4b0771a35fc467052757077fa17b42ceba78a5fe7fb1fa99079240aeeea5538abff778518b706f3bf16dbce2cd4f7dc1900c61b24')
+
+build() {
+  cd py3c-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd py3c-$pkgver
+  make test-python
+}
+
+package() {
+  cd py3c-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.MIT -t "$pkgdir"/usr/share/licenses/$pkgname/
+}


More information about the arch-commits mailing list