summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7efeab83713232e69a5829b0195975d130365b6 (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
# Maintainer: Daniel Milde <daniel at milde dot cz>

pkgname=hython
pkgver=1.0.0
pkgrel=3
pkgdesc="Haskell-powered Python 3 interpreter"
url="https://github.com/mattgreen/hython"
arch=('any')
license=('GPL')
depends=('ghc>=7.10.2' 'ghc<7.10.3' 'stack')
source=("git+https://github.com/mattgreen/hython.git#commit=fcbde98e9b5a033f0d4bea73ac9914bc5e12b746")
sha256sums=('SKIP')

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
   cd "$srcdir/$pkgname"

   mkdir -p "$pkgdir/opt/hython"
   cp -R hython lib "$pkgdir/opt/hython"
   mkdir -p "$pkgdir/usr/bin"
   ln -s /opt/hython/hython "$pkgdir/usr/bin/hython"
}