summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2019-03-12 18:39:24 +0100
committerhaawda2019-03-12 18:39:24 +0100
commitadf6722799004f2072223b5d1db8cab320a602a1 (patch)
tree1379e87b9c26194b2d9bc2960810cb40faf89036
parentde1bcb42c0208c5c388e8f270b4278b13af7b302 (diff)
downloadaur-adf6722799004f2072223b5d1db8cab320a602a1.tar.gz
initial upload
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD28
2 files changed, 17 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c6182fe776b..18d768a5d69 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
pkgbase = emacs-nim-mode-git
- pkgdesc = Emacs mode for the nim programming language
+ pkgdesc = Emacs mode for the nim programming language - from git
pkgver = 0.4.1r68.ga508b4b
pkgrel = 1
url = https://github.com/nim-lang/nim-mode
arch = any
license = GPL3
+ makedepends = git
depends = emacs-dash
depends = emacs-epc
depends = emacs-ctable
@@ -15,7 +16,7 @@ pkgbase = emacs-nim-mode-git
depends = emacs-flycheck
provides = emacs-nim-mode
conflicts = emacs-nim-mode
- source = git+https://github.com/nim-lang/nim-mode.git
+ source = emacs-nim-mode-git::git+https://github.com/nim-lang/nim-mode
source = Makefile.patch
sha256sums = SKIP
sha256sums = 20fef5db29d67788dd22cbc9dd97dd2a778a66a0b6f0b80aa9776d08cadb4576
diff --git a/PKGBUILD b/PKGBUILD
index 32e86e8a341..a13a24956ae 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,35 +4,35 @@
pkgname=emacs-nim-mode-git
pkgver=0.4.1r68.ga508b4b
pkgrel=1
-pkgdesc="Emacs mode for the nim programming language"
+pkgdesc="Emacs mode for the nim programming language - from git"
arch=('any')
url="https://github.com/nim-lang/nim-mode"
license=('GPL3')
-conflicts=("${pkgname%-git}")
-provides=("${pkgname%-git}")
+depends=('emacs-dash' 'emacs-epc' 'emacs-ctable' 'emacs-epl' 'emacs-deferred' 'emacs-company-mode' 'emacs-commander' 'emacs-flycheck')
makedepends=('git')
-depends=('emacs-dash' 'emacs-epc' 'emacs-ctable' 'emacs-epl' 'emacs-deferred' 'emacs-company-mode'
- 'emacs-commander' 'emacs-flycheck')
-source=("git+https://github.com/nim-lang/nim-mode.git" Makefile.patch)
-sha256sums=('SKIP' '20fef5db29d67788dd22cbc9dd97dd2a778a66a0b6f0b80aa9776d08cadb4576')
+conflicts=('emacs-nim-mode')
+provides=('emacs-nim-mode')
+source=("$pkgname::git+$url" Makefile.patch)
+sha256sums=('SKIP'
+ '20fef5db29d67788dd22cbc9dd97dd2a778a66a0b6f0b80aa9776d08cadb4576')
pkgver() {
- cd nim-mode
- git describe --tags --long | sed 's+-+r+' | tr - .|cut -c2-
+ cd ${pkgname}
+ git describe --tags --long | sed 's+-+r+'|tr - .|cut -c2-
}
prepare() {
- cd nim-mode
+ cd ${pkgname}
patch -Np1 < "$srcdir"/Makefile.patch
}
build() {
- cd nim-mode
+ cd ${pkgname}
make
}
package() {
- cd nim-mode
- install -dm755 "$pkgdir"/usr/share/emacs/site-lisp/
- cp *.el{,c} "$pkgdir"/usr/share/emacs/site-lisp/
+ cd ${pkgname}
+ install -dm755 "$pkgdir"/usr/share/emacs/site-lisp
+ cp *.el{,c} "$pkgdir"/usr/share/emacs/site-lisp
}