updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / ghc-mod / PKGBUILD
blobb59d6c7b9f79df051ba4b5fce5a9a6f782ecf534
1 # custom variables
2 _hkgname=ghc-mod
3 _licensefile=LICENSE
5 # PKGBUILD options/directives
6 pkgname=ghc-mod
7 pkgver=1.0.2
8 pkgrel=2
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')
13 makedepends=("ghc"
14              "haskell-attoparsec"
15              "haskell-attoparsec-enumerator"
16              "haskell-enumerator"
17              "haskell-ghc-paths"
18              "haskell-hlint"
19              "haskell-transformers"
20              "haskell-regex-posix")
21 depends=()
22 options=('strip')
23 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
24 sha256sums=('fa851743278e369aea617bc05c42cbd38130bffccb45d51b178333b0257a6900')
26 # PKGBUILD functions
27 build() {
28     cd ${srcdir}/${_hkgname}-${pkgver}
29     
30     runhaskell Setup configure -O --prefix=/usr --docdir=/usr/share/doc/${pkgname}
31     runhaskell Setup build
34 package() {
35     cd ${srcdir}/${_hkgname}-${pkgver}
36     runhaskell Setup copy --destdir=${pkgdir}
37     cd ${pkgdir}/usr/share/$pkgname-$pkgver/
38     make
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