summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2018-08-25 21:25:54 +0200
committerhaawda2018-08-25 21:25:54 +0200
commit274f6c9ad4c16026003855050217945e4dbb0b75 (patch)
tree251d1638c4027ca71c3280a685aaf0eb3cf2bab6
parent805af578a891e19af82609eea36293950cd1f534 (diff)
downloadaur-274f6c9ad4c16026003855050217945e4dbb0b75.tar.gz
adopted, updated, and added pkgver function. Pull from emacswiki, not github.
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD20
2 files changed, 15 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7c9cfad7c0e7..f5dfeef6930c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,16 @@
-# Generated by mksrcinfo v8
-# Tue Apr 25 19:50:35 UTC 2017
pkgbase = emacs-font-lock-plus
pkgdesc = Enhancements to standard library 'font-lock.el'.
- pkgver = 208
+ pkgver = 218
pkgrel = 1
url = https://www.emacswiki.org/emacs/font-lock%2B.el
arch = any
license = GPL2
makedepends = git
+ makedepends = awk
depends = emacs
provides = emacs-font-lock-plus
- source = https://github.com/emacsmirror/font-lock-plus/archive/208.tar.gz
- sha256sums = SKIP
+ source = font-lock+.el::https://www.emacswiki.org/emacs/download/font-lock%2B.el
+ sha256sums = e4ce731106a5baef872bf03ad5ee30bcfa7f163102813a60e1552e48ecf72705
pkgname = emacs-font-lock-plus
diff --git a/PKGBUILD b/PKGBUILD
index 20a91abe5da4..449659ae14f7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,27 @@
# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>
pkgname=emacs-font-lock-plus
-pkgver=208
+pkgver=218
pkgrel=1
pkgdesc="Enhancements to standard library 'font-lock.el'."
url="https://www.emacswiki.org/emacs/font-lock%2B.el"
arch=('any')
license=('GPL2')
depends=('emacs')
-makedepends=('git')
+makedepends=('git' 'awk')
provides=('emacs-font-lock-plus')
-source=("https://github.com/emacsmirror/font-lock-plus/archive/${pkgver}.tar.gz")
-sha256sums=('SKIP')
+source=("font-lock+.el::https://www.emacswiki.org/emacs/download/font-lock%2B.el")
+sha256sums=('e4ce731106a5baef872bf03ad5ee30bcfa7f163102813a60e1552e48ecf72705')
+pkgver() {
+ awk '/Update #:/ {print $4}' font-lock+.el
+}
+
build() {
- cd "${srcdir}/font-lock-plus-${pkgver}"
- emacs -Q -batch -L . -f batch-byte-compile *.el
+ emacs -Q -batch -L . -f batch-byte-compile font-lock+.el
}
package() {
- cd "${srcdir}/font-lock-plus-${pkgver}"
- install -d "${pkgdir}/usr/share/emacs/site-lisp/font-lock-plus/"
- install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/font-lock-plus/"
+ install -d "$pkgdir"/usr/share/emacs/site-lisp/font-lock-plus/
+ install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp/font-lock-plus/
}