blob: e3331510e7889194b0e668361bad1241d342f9e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Wu Junyu <wu.junyu.aur@outlook.com>
# Contributor: Daniel Milde <daniel@milde.cz>
# Contributor: Yen Chi Hsuan <yan12125@gmail.com>
_base=setuptools
pkgname=pypy3-${_base}
pkgver=75.5.0
pkgrel=1
epoch=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=(any)
url="https://${_base}.pypa.io"
license=(MIT)
makedepends=(pypy3)
source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz)
sha512sums=('353ad99bb946d5ed07139f3a6d5f0efc9a4ca9721b060fce9095ee6fc74ac0e832fd0ebf7b2d1d68c71021db30561c5fea6abdde42174981f26002390a1e0e67')
prepare() {
cd "${srcdir}"/${_base}-${pkgver}
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env pypy|" setup.py
}
# Rename the following function to check() to enable checking
_check() {
# Workaround UTF-8 tests by setting LC_CTYPE
# Check pypy3 module
cd "${srcdir}"/${_base}-${pkgver}
LC_CTYPE=en_US.utf8 pypy3 setup.py ptr
}
package() {
depends=(pypy3)
cd "${srcdir}/${_base}-${pkgver}"
pypy3 setup.py install --prefix=/opt/pypy3 --root="${pkgdir}" --optimize=1
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|