blob: d36b6b284f4371f260084b54a9f39993e164bb27 (
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
|
pkgname=intero
pkgver=0.1.40
pkgrel=2
pkgdesc="Complete interactive development program for Haskell"
url="https://hackage.haskell.org/package/intero"
license=('BSD')
arch=('x86_64' 'i686' 'aarch64')
depends=('ghc-libs' 'haskell-ghc-paths'
'haskell-random'
'haskell-network'
'haskell-syb')
makedepends=('ghc' 'emacs-company-mode' 'emacs-haskell-mode'
'flycheck')
source=(${pkgname}-${pkgver}.tar.gz::"https://hackage.haskell.org/package/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('e3dbff092298bc612290696c3f4f017fbcd55fd5b734c7660f7f3d85a55ce526')
build() {
cd ${pkgname}-${pkgver}
runghc Setup.hs configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
--prefix=/usr --docdir="/usr/share/doc/${pkgname}" \
--dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
runghc Setup.hs build
cd elisp
emacs --no-splash -batch -L . -f batch-byte-compile *.el
}
package() {
cd ${pkgname}-${pkgver}
runghc Setup.hs copy --destdir="${pkgdir}"
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
mv "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}"
mkdir -p ${pkgdir}/usr/share/emacs/site-lisp/${pkgname}
cp elisp/*.{el,elc} ${pkgdir}/usr/share/emacs/site-lisp/${pkgname}
}
|