diff options
author | haawda | 2018-10-04 16:56:07 +0200 |
---|---|---|
committer | haawda | 2018-10-04 16:56:07 +0200 |
commit | 12fcc7080a2505f3ead83608357c53bd332fae88 (patch) | |
tree | 356ed8505f475193676e42650e99f566d56a98f4 | |
download | aur-12fcc7080a2505f3ead83608357c53bd332fae88.tar.gz |
initial upload
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | Makefile.patch | 27 | ||||
-rw-r--r-- | PKGBUILD | 30 |
3 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..289901f3278b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +# Generated by mksrcinfo v8 +# Thu Oct 4 14:55:56 UTC 2018 +pkgbase = emacs-nim-mode + pkgdesc = The long lost Emacs string manipulation library. + pkgver = 0.4.1 + pkgrel = 1 + url = https://github.com/nim-lang/nim-mode + arch = any + license = GPL3 + depends = emacs-dash + depends = emacs-epc + depends = emacs-ctable + depends = emacs-epl + depends = emacs-deferred + depends = emacs-company-mode + depends = emacs-commander + depends = emacs-flycheck + source = emacs-nim-mode-0.4.1.tar.gz::https://github.com/nim-lang/nim-mode/archive/v0.4.1.tar.gz + source = Makefile.patch + sha256sums = 2fb54b05e144f72bc15b7f8bc1112535bf22f6a3b7bfbe6d8a5a2ab7206a5815 + sha256sums = 20fef5db29d67788dd22cbc9dd97dd2a778a66a0b6f0b80aa9776d08cadb4576 + +pkgname = emacs-nim-mode + diff --git a/Makefile.patch b/Makefile.patch new file mode 100644 index 000000000000..61f8269ab0fa --- /dev/null +++ b/Makefile.patch @@ -0,0 +1,27 @@ +diff -Naur nim-mode-0.4.1.orig/Makefile nim-mode-0.4.1.new/Makefile +--- nim-mode-0.4.1.orig/Makefile 2018-10-03 23:47:34.466464558 +0200 ++++ nim-mode-0.4.1.new/Makefile 2018-10-04 11:41:31.126154170 +0200 +@@ -3,20 +3,19 @@ + + cask_dir_exists := $(shell find ./ -type d -name ".cask") + +-all: test ++all: compile unit + + test: clean-elc + $(if $(cask_dir_exists), $(skip), ${MAKE} install-dependencies) + ${MAKE} unit + ${MAKE} compile + ${MAKE} unit +- ${MAKE} clean-elc + + compile: +- ${CASK} exec ${EMACS} -Q -batch -L . -f batch-byte-compile *.el ++ ${EMACS} -Q -batch -L /usr/share/emacs/site-lisp/flycheck -L /usr/share/emacs/site-lisp/ -L /usr/share/emacs/site-lisp/epc -L . -f batch-byte-compile *.el + + unit: +- ${CASK} exec buttercup -L . ++ + + install-dependencies: + ${CASK} install diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..eef41fbd49e5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: Alex Whitt <alex.joseph.whitt@gmail.com> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> + +pkgname=emacs-nim-mode +pkgver=0.4.1 +pkgrel=1 +pkgdesc="The long lost Emacs string manipulation library." +arch=('any') +url="https://github.com/nim-lang/nim-mode" +license=('GPL3') +depends=('emacs-dash' 'emacs-epc' 'emacs-ctable' 'emacs-epl' 'emacs-deferred' 'emacs-company-mode' 'emacs-commander' 'emacs-flycheck') +source=("$pkgname-$pkgver.tar.gz::https://github.com/nim-lang/nim-mode/archive/v$pkgver.tar.gz" Makefile.patch) +sha256sums=('2fb54b05e144f72bc15b7f8bc1112535bf22f6a3b7bfbe6d8a5a2ab7206a5815' + '20fef5db29d67788dd22cbc9dd97dd2a778a66a0b6f0b80aa9776d08cadb4576') + +prepare() { + cd ${pkgname#emacs-}-$pkgver + patch -Np1 < "$srcdir"/Makefile.patch +} + +build() { + cd ${pkgname#emacs-}-$pkgver + make +} + +package() { + cd ${pkgname#emacs-}-$pkgver + install -dm755 "$pkgdir"/usr/share/emacs/site-lisp/$pkgname + cp *.el "$pkgdir"/usr/share/emacs/site-lisp/$pkgname +} |