diff options
author | Danilo J. S. Bellini | 2022-06-13 15:23:24 -0300 |
---|---|---|
committer | Danilo J. S. Bellini | 2022-06-13 15:23:24 -0300 |
commit | 628aa99d7719509b172256c3676c30a4a7d7a110 (patch) | |
tree | 7839148b48763d82bae9133fb961068ff49b3517 | |
parent | 261abe4ff2979f1ea0614578f7b5d8c463196b05 (diff) | |
download | aur-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-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -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 @@ -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" } |