mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/py-cparser: added install_if to pull the right python version
This commit is contained in:
parent
a6a1fd9a75
commit
4f8853cee9
@ -2,13 +2,13 @@
|
||||
# Maintainer: William Pitcock <nenolod@dereferenced.org>
|
||||
pkgname=py-cparser
|
||||
pkgver=2.14
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="a C parser written in Python"
|
||||
url="https://github.com/eliben/pycparser"
|
||||
arch="noarch"
|
||||
license="BSD"
|
||||
depends=""
|
||||
makedepends="python-dev python3-dev py-setuptools"
|
||||
makedepends="python2-dev python3-dev py-setuptools"
|
||||
install=""
|
||||
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
|
||||
source="https://files.pythonhosted.org/packages/source/p/pycparser/pycparser-$pkgver.tar.gz"
|
||||
@ -27,7 +27,7 @@ package() {
|
||||
_py() {
|
||||
local python=$1
|
||||
pkgdesc="$pkgdesc - $python"
|
||||
|
||||
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
||||
cd "$builddir"
|
||||
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user