summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD20
2 files changed, 18 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fc3258e1136..73e06503f69 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,14 @@
pkgbase = emacs-adoc-mode
pkgdesc = Emacs major mode for editing asciidoc files
pkgver = 0.6.6
- pkgrel = 1
+ pkgrel = 2
url = http://github.com/sensorflo/adoc-mode
install = emacs-adoc-mode.install
arch = any
license = GPL
- depends = emacs
- depends = emacs-markup-faces>=1.0.0
- source = git+http://github.com/sensorflo/adoc-mode#commit=995785538489e573ad208f73c4e833ba60c5cfdb
- md5sums = SKIP
+ depends = emacs-markup-faces
+ source = emacs-adoc-mode-0.6.6.tar.gz::http://github.com/sensorflo/adoc-mode/archive/V0.6.6.tar.gz
+ sha256sums = 4ad811081ab69caa83e3f02f68b75a41b9031a1715720045cdd33801523b930f
pkgname = emacs-adoc-mode
diff --git a/PKGBUILD b/PKGBUILD
index 9f14f9e8bb4..d920ca1d828 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,26 @@
-# Maintainer: Oliver Mangold
+# Contributor: Oliver Mangold
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=emacs-adoc-mode
pkgver=0.6.6
-pkgrel=1
+pkgrel=2
pkgdesc="Emacs major mode for editing asciidoc files"
arch=('any')
url="http://github.com/sensorflo/adoc-mode"
license=('GPL')
-depends=('emacs' "emacs-markup-faces>=1.0.0")
+depends=("emacs-markup-faces")
install=emacs-adoc-mode.install
-source=(git+http://github.com/sensorflo/adoc-mode#commit=995785538489e573ad208f73c4e833ba60c5cfdb)
-md5sums=(SKIP)
+source=("$pkgname-$pkgver.tar.gz::http://github.com/sensorflo/adoc-mode/archive/V$pkgver.tar.gz")
+sha256sums=('4ad811081ab69caa83e3f02f68b75a41b9031a1715720045cdd33801523b930f')
+
+build() {
+ emacs -batch -q -f batch-byte-compile ${pkgname#emacs-}-$pkgver/${pkgname#emacs-}.el
+}
package() {
# Install the mode for Emacs
- install -D -m644 "$srcdir/adoc-mode/adoc-mode.el" "$pkgdir/usr/share/emacs/site-lisp/adoc-mode.el"
+ install -D -m644 "$srcdir"/${pkgname#emacs-}-$pkgver/${pkgname#emacs-}.el \
+ "$pkgdir"/usr/share/emacs/site-lisp/${pkgname#emacs-}.el
+ install -D -m644 "$srcdir"/${pkgname#emacs-}-$pkgver/${pkgname#emacs-}.elc \
+ "$pkgdir"/usr/share/emacs/site-lisp/${pkgname#emacs-}.elc
}