[arch-commits] Commit in python-py3c/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Jul 23 20:10:15 UTC 2021
Date: Friday, July 23, 2021 @ 20:10:15
Author: felixonmars
Revision: 984827
archrelease: copy trunk to community-any
Added:
python-py3c/repos/community-any/PKGBUILD
(from rev 984826, python-py3c/trunk/PKGBUILD)
Deleted:
python-py3c/repos/community-any/PKGBUILD
----------+
PKGBUILD | 82 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 41 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-07-23 20:10:00 UTC (rev 984826)
+++ PKGBUILD 2021-07-23 20:10:15 UTC (rev 984827)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-py3c
-pkgver=1.3
-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=('cf43808f415a2a8832c669b8bfdb74754c99941694afaa6ecc7d11d0c9fa542136cf0066bffab05b2e0cacc532d3301ca4275da358f7947723c64c5f1a2633ed')
-
-prepare() {
- cd py3c-$pkgver
- # Don't regenerate with broken path in "install" target
- sed -i 's/install: py3c.pc/install:/' Makefile
-}
-
-build() {
- cd py3c-$pkgver
- python setup.py build
- make prefix=/usr py3c.pc
-}
-
-check() {
- cd py3c-$pkgver
- make test-python
-}
-
-package() {
- cd py3c-$pkgver
- make prefix="$pkgdir"/usr install
- python setup.py install --root="$pkgdir" --optimize=1
-
- # Remove headers in broken location
- rm -r "$pkgdir"/usr/include/python*
-
- install -Dm644 LICENSE.MIT -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
Copied: python-py3c/repos/community-any/PKGBUILD (from rev 984826, python-py3c/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-07-23 20:10:15 UTC (rev 984827)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-py3c
+pkgver=1.3.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=('ea8d283d619a18e8673a7d2e85d9f20b401913af2958c9aa1b31c1ebabdc0d5a6a51f2b6b0b561c3d962faeefbd1754ce576bfcfe32bc25073b6178f6eccec22')
+
+prepare() {
+ cd py3c-$pkgver
+ # Don't regenerate with broken path in "install" target
+ sed -i 's/install: py3c.pc/install:/' Makefile
+}
+
+build() {
+ cd py3c-$pkgver
+ python setup.py build
+ make prefix=/usr py3c.pc
+}
+
+check() {
+ cd py3c-$pkgver
+ make test-python
+}
+
+package() {
+ cd py3c-$pkgver
+ make prefix="$pkgdir"/usr install
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ # Remove headers in broken location
+ rm -r "$pkgdir"/usr/include/python*
+
+ install -Dm644 LICENSE.MIT -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list