blob: b0a789b83f03d3769f72a9b761e65973c43f9ba1 (
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
38
39
|
# Maintainer: Jingbei Li <i@jingbei.li>
pkgname=pypy-bin
pkgver=7.3.17
pkgrel=1
pkgdesc="A Python implementation written in Python, JIT enabled"
url="https://pypy.org"
arch=('x86_64' 'aarch64')
depends=('bzip2' 'openssl' 'zlib')
provides=('pypy')
conflicts=('pypy')
options=(!buildflags)
license=('MIT')
source_x86_64=("https://downloads.python.org/pypy/pypy2.7-v${pkgver}-linux64.tar.bz2")
source_aarch64=("https://downloads.python.org/pypy/pypy2.7-v${pkgver}-aarch64.tar.bz2")
sha512sums_x86_64=('19a3162dece4fac5fd13f6068afa3fa7eff0f639dcc261146b984dcd5ec05fff4a2e18aab0e10b72f7eaea64217d85665246cabc7e6bec0bf935108f1a53ef4d')
sha512sums_aarch64=('c50d214582f8d32cb056e4168a34919419cef7f3e5bf8b12a663817944e8d99348d03bb04f9c75d0c62f6d483287378b460fe427e3fb797888b165cc23d7ec59')
package() {
[ "$CARCH" = "x86_64" ] && cd pypy2.7-v${pkgver}-linux64
[ "$CARCH" = "aarch64" ] && cd pypy2.7-v${pkgver}-aarch64
# Fix permissions
find . -type d -exec chmod +rx {} \;
find . -name '*.so*' -exec chmod +rx {} \;
# Install pypy
mkdir -p "${pkgdir}"/opt/pypy/
cp -r * "${pkgdir}"/opt/pypy/
# Install symlink
mkdir -p "${pkgdir}"/usr/bin "${pkgdir}"/usr/lib
ln -s /opt/pypy/bin/pypy "${pkgdir}"/usr/bin/pypy
ln -s /opt/pypy/bin/libpypy-c.so "${pkgdir}"/usr/lib/libpypy-c.so
# Install misc stuff
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/pypy/LICENSE
}
# vim: ts=2 sw=2 et:
|