5 # PKGBUILD options/directives
9 pkgdesc="Happy Haskell programming on Emacs"
10 url="http://www.mew.org/~kazu/proj/ghc-mod/"
11 license=('custom:BSD')
12 arch=('i686' 'x86_64')
15 "haskell-attoparsec-enumerator"
19 "haskell-transformers"
20 "haskell-regex-posix")
23 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
24 sha256sums=('fa851743278e369aea617bc05c42cbd38130bffccb45d51b178333b0257a6900')
28 cd ${srcdir}/${_hkgname}-${pkgver}
30 runhaskell Setup configure -O --prefix=/usr --docdir=/usr/share/doc/${pkgname}
31 runhaskell Setup build
35 cd ${srcdir}/${_hkgname}-${pkgver}
36 runhaskell Setup copy --destdir=${pkgdir}
37 cd ${pkgdir}/usr/share/$pkgname-$pkgver/
39 install -d ${pkgdir}/usr/share/emacs/site-lisp
40 cp *.elc *.el ${pkgdir}/usr/share/emacs/site-lisp
41 install -Dm644 ${srcdir}/${_hkgname}-${pkgver}/LICENSE \
42 ${pkgdir}/usr/share/licenses/$pkgname/LICENSE