summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 538d2c7ac5009479f4d2d343e88647fa2127b1b0 (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
# Contributor: Kyle Keen <keenerd@gmail.com>

# transition pkgbuild while figuring out python2/python3 versions

pkgname=dreampie
pkgver=1.2.1
pkgrel=1
pkgdesc="A Python shell which is designed to be reliable and fun."
arch=('any')
url="http://dreampie.org"
license=('GPL')
depends=('pygtksourceview2')
optdepends=('python2-matplotlib: for interactive plotting')
source=($pkgname-$pkgver.tar.gz::https://github.com/noamraph/dreampie/tarball/$pkgver)
md5sums=('6d745ce46624ebce91e2aac67ebbfbf1')

build() {
    # git sha in srcdir
    cd "$srcdir/noamraph-dreampie"-*
    # build won't work with py3
    # but the later install is fine
    python2 setup.py build
}

package() {
    cd "$srcdir/noamraph-dreampie"-*
    #if which python3; then
    #    python3 setup.py install --prefix=/usr --root="$pkgdir"
    #    mv "$pkgdir/usr/bin/dreampie" "$pkgdir/usr/bin/dreampie-py3"
    #fi
    python2 setup.py install --prefix=/usr --root="$pkgdir"
    find "$pkgdir/" -name '*.pyc' -delete
    find "$pkgdir/" -type d -empty -delete
}