1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Gleidson <gleidson.echeli@gmail.com>
4 pkgname=emacs-haskell-mode
7 _commit=20d4e2300302a9af673e82d0185d3f489bfb0f59
8 pkgdesc="Haskell mode package for Emacs"
11 url="https://github.com/haskell/haskell-mode"
12 install=emacs-haskell-mode.install
14 #source=($pkgname-$pkgver.tar.gz::https://github.com/haskell/haskell-mode/archive/$pkgver.tar.gz)
15 source=($pkgname-${_commit}.tar.gz::https://github.com/haskell/haskell-mode/archive/${_commit}.tar.gz)
16 sha256sums=('22b9f31c554bac1591ec52d2c459ae96ff89e076f5857ee29d03df1ead7ccb08')
19 # cd "$srcdir"/haskell-mode-$pkgver
20 cd "$srcdir"/haskell-mode-${_commit}
21 sed -i 's|haskell-mode-pkg.el,|haskell-mode-pkg.el haskell-mode.el,|' Makefile
25 # cd "$srcdir"/haskell-mode-$pkgver
26 cd "$srcdir"/haskell-mode-${_commit}
27 export EMACS=/usr/bin/emacs
32 # cd "$srcdir"/haskell-mode-$pkgver
33 cd "$srcdir"/haskell-mode-${_commit}
35 install -dm0755 "$pkgdir"/usr/share/emacs/site-lisp/haskell-mode
36 install -m0644 *.el -t "$pkgdir"/usr/share/emacs/site-lisp/haskell-mode
37 cp -a build-$(emacs --version | head -n1 | cut -f3 -d' ') -t "$pkgdir"/usr/share/emacs/site-lisp/haskell-mode/
39 install -dm0755 "$pkgdir"/usr/share/doc/$pkgname
40 install -m0644 NEWS README.md "$pkgdir"/usr/share/doc/$pkgname
42 install -Dm0644 haskell-mode.info "$pkgdir"/usr/share/info/haskell-mode.info