summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD44
-rw-r--r--emacs-haskell-mode-git.install11
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..266a0459cf4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = emacs-haskell-mode-git
+ pkgdesc = Haskell mode package for Emacs
+ pkgver = r2719.f63f315
+ pkgrel = 1
+ url = https://github.com/haskell/haskell-mode
+ install = emacs-haskell-mode-git.install
+ arch = any
+ license = GPL
+ makedepends = emacs
+ makedepends = git
+ provides = emacs-haskell-mode
+ source = emacs-haskell-mode-git::git://github.com/haskell/haskell-mode
+ md5sums = SKIP
+
+pkgname = emacs-haskell-mode-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0075ef4e25c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Gleidson <gleidson.echeli@gmail.com>
+
+pkgname=emacs-haskell-mode-git
+pkgver=r2719.f63f315
+pkgrel=1
+pkgdesc="Haskell mode package for Emacs"
+arch=(any)
+license=('GPL')
+url="https://github.com/haskell/haskell-mode"
+install=${pkgname}.install
+makedepends=('emacs' 'git')
+provides=('emacs-haskell-mode')
+source=("${pkgname}::git://github.com/haskell/haskell-mode")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir"/${pkgname}
+ sed -i 's|haskell-mode-pkg.el,|haskell-mode-pkg.el haskell-mode.el,|' Makefile
+}
+
+build() {
+ cd "$srcdir"/${pkgname}
+ export EMACS=/usr/bin/emacs
+ make
+}
+
+package() {
+ cd "$srcdir"/${pkgname}
+
+ install -dm0755 "$pkgdir"/usr/share/emacs/site-lisp/haskell-mode
+ install -m0644 *.el -t "$pkgdir"/usr/share/emacs/site-lisp/haskell-mode
+ cp -a build-$(emacs --version | head -n1 | cut -f3 -d' ') -t "$pkgdir"/usr/share/emacs/site-lisp/haskell-mode/
+
+ install -dm0755 "$pkgdir"/usr/share/doc/$pkgname
+ install -m0644 NEWS README.md "$pkgdir"/usr/share/doc/$pkgname
+
+ install -Dm0644 haskell-mode.info "$pkgdir"/usr/share/info/haskell-mode.info
+}
diff --git a/emacs-haskell-mode-git.install b/emacs-haskell-mode-git.install
new file mode 100644
index 00000000000..a5c514d92e8
--- /dev/null
+++ b/emacs-haskell-mode-git.install
@@ -0,0 +1,11 @@
+post_install () {
+ echo ""
+ echo "==> read the manual via M-x info-display-manual RET haskell-mode RET"
+ echo "==> for information about how to configure your ~/.emacs"
+ echo ""
+}
+
+post_upgrade () {
+ post_install $1
+}
+