summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Husmann2016-02-03 18:22:27 +0100
committerStefan Husmann2016-02-03 18:22:27 +0100
commit1dcebe62ecaa528e0243fa01e6203c43a58c20e7 (patch)
tree38b7e80ba32cd237c18a308341b5203ec40bfe08
parent81074220cbcf941be4f3c0747ed2ee9b51a7e21e (diff)
downloadaur-1dcebe62ecaa528e0243fa01e6203c43a58c20e7.tar.gz
switch to the github repo
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD20
2 files changed, 18 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 58c4befcd7e..42beb1c4868 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,15 @@
+# Generated by mksrcinfo v8
+# Wed Feb 3 17:22:27 UTC 2016
pkgbase = emacs-js2-mode
pkgdesc = An improved JavaScript mode for GNU Emacs
- pkgver = 20121128
+ pkgver = 20150909
pkgrel = 1
url = http://code.google.com/p/js2-mode/
arch = any
license = GPL2
depends = emacs
- source = https://js2-mode.googlecode.com/files/js2-mode.el
- md5sums = 4635201397803fd4b705b285f77b2321
+ source = https://github.com/mooz/js2-mode/archive/20150909.tar.gz
+ md5sums = 41149d4ec8fa207a4df69d06fb0df54a
pkgname = emacs-js2-mode
diff --git a/PKGBUILD b/PKGBUILD
index 0b536a46ceb..a00905ed707 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,21 +3,27 @@
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emacs-js2-mode
-pkgver=20121128
+pkgver=20150909
pkgrel=1
pkgdesc="An improved JavaScript mode for GNU Emacs"
arch=('any')
url="http://code.google.com/p/js2-mode/"
license=('GPL2')
depends=('emacs')
-source=(https://js2-mode.googlecode.com/files/js2-mode.el)
-md5sums=('4635201397803fd4b705b285f77b2321')
+source=(https://github.com/mooz/js2-mode/archive/$pkgver.tar.gz)
+md5sums=('41149d4ec8fa207a4df69d06fb0df54a')
build() {
- cd $srcdir
- emacs -batch -q -f batch-byte-compile js2-mode.el
+ cd "$srcdir"/${pkgname#emacs-}-$pkgver
+ make
}
package() {
- install -Dm644 $srcdir/js2-mode.el $pkgdir/usr/share/emacs/site-lisp/js2-mode.el
- install -Dm644 $srcdir/js2-mode.elc $pkgdir/usr/share/emacs/site-lisp/js2-mode.elc
+ cd "$srcdir"/${pkgname#emacs-}-$pkgver
+ install -Dm644 "$srcdir"/js2-mode.el "$pkgdir"/usr/share/emacs/site-lisp/js2-mode.el
+ install -Dm644 "$srcdir"/js2-mode.elc "$pkgdir"/usr/share/emacs/site-lisp/js2-mode.elc
+ install -Dm644 js2-old-indent.el "$pkgdir"/usr/share/emacs/site-lisp/js2-old-indent.el
+ install -Dm644 js2-imenu-extras.el \
+ "$pkgdir"/usr/share/emacs/site-lisp/js2-imenu-extras.el
+ install -Dm644 js2-imenu-extras.elc \
+ "$pkgdir"/usr/share/emacs/site-lisp/js2-imenu-extras.elc
}