diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-22 13:50:42 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-22 13:52:40 +0200 |
commit | 24f0aa15b6d1ed98123ccf1fe9b4f439c37ef036 (patch) | |
tree | 5e20df7ec81b8f9121f43e486b1a1d7783a5856a /emacs-scala-mode (not maintaining) | |
parent | update dooble (diff) | |
download | aur-packages-24f0aa15b6d1ed98123ccf1fe9b4f439c37ef036.tar.gz aur-packages-24f0aa15b6d1ed98123ccf1fe9b4f439c37ef036.tar.bz2 aur-packages-24f0aa15b6d1ed98123ccf1fe9b4f439c37ef036.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'emacs-scala-mode (not maintaining)')
-rw-r--r-- | emacs-scala-mode (not maintaining)/PKGBUILD | 28 | ||||
-rw-r--r-- | emacs-scala-mode (not maintaining)/emacs_scala_mode.install | 5 | ||||
-rw-r--r-- | emacs-scala-mode (not maintaining)/watch- | 19 |
3 files changed, 52 insertions, 0 deletions
diff --git a/emacs-scala-mode (not maintaining)/PKGBUILD b/emacs-scala-mode (not maintaining)/PKGBUILD new file mode 100644 index 0000000..cd93128 --- /dev/null +++ b/emacs-scala-mode (not maintaining)/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> +# Contributor: Sylvain HENRY <hsyl20@gmail.com> +# Contributor: Jeff Bowman <jeff.t.bowman@gmail.com> + +pkgname=emacs-scala-mode +pkgver=2.10.2 +pkgrel=1 +pkgdesc="Scala-mode for emacs" +arch=('any') +url="http://www.scala-lang.org" +license=('custom') +depends=('emacs') +makedepends=('make') +source=(http://www.scala-lang.org/downloads/distrib/files/scala-tool-support-${pkgver}.tgz) +md5sums=('57d6618074b0e0421aa528830f47b0dd') +install=emacs_scala_mode.install + +build() { + cd "$srcdir/scala-tool-support-${pkgver}/scala-emacs-mode" + make +} + +package() { + cd "$srcdir/scala-tool-support-${pkgver}/scala-emacs-mode" + mkdir -p "${pkgdir}/usr/share/emacs/scala-mode" + install -m0644 *.elc "${pkgdir}/usr/share/emacs/scala-mode/" +} + diff --git a/emacs-scala-mode (not maintaining)/emacs_scala_mode.install b/emacs-scala-mode (not maintaining)/emacs_scala_mode.install new file mode 100644 index 0000000..d70c89a --- /dev/null +++ b/emacs-scala-mode (not maintaining)/emacs_scala_mode.install @@ -0,0 +1,5 @@ +post_install() { + echo "Add the following lines to your ~/.emacs file:" + echo "(add-to-list 'load-path \"/usr/share/emacs/scala-mode\")" + echo "(require 'scala-mode-auto)" +} diff --git a/emacs-scala-mode (not maintaining)/watch- b/emacs-scala-mode (not maintaining)/watch- new file mode 100644 index 0000000..2422906 --- /dev/null +++ b/emacs-scala-mode (not maintaining)/watch- @@ -0,0 +1,19 @@ +#!/bin/sh + +wget http://www.scala-lang.org/downloads -O - 2>/dev/null | grep -Po 'scala-tool-support-.+>' | head -n 2 > release + +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + md5sum release > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'emacs-scala-mode' + fi +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'emacs-scala-mode (unfetchable)' +fi + |