summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38f9dc7bc5e70c61c2062b877b8ddc264ac549e7 (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
40
41
42
43
44
# Maintainer: Nathan Monfils <nathan.monfils@hotmail.fr>

pkgname=pypy2-revdb
pkgver=7.1.0
pkgrel=2
pkgdesc="PyPy2 compiled with revdb"
arch=(any)
url="https://pypy.org"
license=('MIT')
depends=(python2-cffi)
makedepends=(pypy python2-cffi python2-setuptools)
provides=("${pkgname}")
conflicts=("${pkgname}")
source=("${pkgname}::https://bitbucket.org/pypy/pypy/downloads/pypy2.7-v${pkgver}-src.tar.bz2")
md5sums=('d412f762092fc200c94dcad477f8571f')

build() {
    cd "$srcdir/pypy2.7-v${pkgver}-src/pypy/goal"
    # pypy ../../rpython/bin/rpython -O2 --revdb
}

package() {
    cd "$srcdir/pypy2.7-v${pkgver}-src/"

    python2 pypy/tool/release/package.py --rename_pypy_c pypy2-revdb --targetdir "$srcdir"

    cd "$srcdir"
    tar xf "pypy-nightly.tar.bz2"

    installdir="${pkgdir}/opt/pypy2-revdb"
    mkdir -p "${installdir}"/{bin,lib-python,lib_pypy}

    cd pypy-nightly
    cp bin/* "${installdir}/bin"
    cp -r lib-python/2.7 "${installdir}/lib-python"
    cp -r lib_pypy "${installdir}"
    cp -r include "${installdir}"

    mkdir -p "${pkgdir}/usr/bin"
    ln -s /opt/pypy2-revdb/bin/pypy2-revdb "${pkgdir}/usr/bin/pypy2-revdb"

    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/pypy2-revdb/LICENSE"
}