summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo J. S. Bellini2022-06-13 15:23:24 -0300
committerDanilo J. S. Bellini2022-06-13 15:23:24 -0300
commit628aa99d7719509b172256c3676c30a4a7d7a110 (patch)
tree7839148b48763d82bae9133fb961068ff49b3517
parent261abe4ff2979f1ea0614578f7b5d8c463196b05 (diff)
downloadaur-628aa99d7719509b172256c3676c30a4a7d7a110.tar.gz
Accept pyc/pyo and add Felix (v1.1-2)
There are systems that compile a __init__.pyo file, and it would be nice if any compiled versions would get installed, that's the goal of this change Felix was the maintainer while python2-backports was in the community repository
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index aa6907350996..4c963e596371 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python2-backports
pkgdesc = Namespace for backported Python features
pkgver = 1.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/brandon-rhodes/backports
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 5f92b8ccef33..e59b8f56f20e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
# Maintainer: Danilo J. S. Bellini <danilo dot bellini at gmail dot com>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgname=python2-backports
_name=${pkgname#python2-}
pkgver=1.1
-pkgrel=1
+pkgrel=2
pkgdesc='Namespace for backported Python features'
arch=('any')
url='https://github.com/brandon-rhodes/backports'
@@ -24,8 +25,7 @@ build() {
package() {
cd "$srcdir/$_name-$pkgver"
- _destdir="$pkgdir/usr/lib/python2.7/site-packages/$_name"
- install -Dm644 "$_name/__init__.py" "$_destdir/__init__.py"
- install -Dm644 "$_name/__init__.pyc" "$_destdir/__init__.pyc"
+ find "$_name"/__init__* -exec \
+ install -Dm644 '{}' "$pkgdir/usr/lib/python2.7/site-packages"/'{}' \;
install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}