summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Oteiza2015-08-31 20:59:24 -0400
committerMark Oteiza2015-08-31 20:59:24 -0400
commit82f208fd1666b813af4c242f86ac85743d91ea11 (patch)
tree883768e4ea8ae817bb8fa3619d0566d0448f304d
parentc3381d989cc10e42cc517c0997315efdd261e076 (diff)
downloadaur-82f208fd1666b813af4c242f86ac85743d91ea11.tar.gz
dash.el 2.11
with added info manual
-rw-r--r--PKGBUILD17
-rw-r--r--emacs-dash.install20
2 files changed, 27 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 964e33af1c5..f36f80450e2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Sebastien Duthil <duthils@free.fr>
pkgname=emacs-dash
-pkgver=2.10.0
+pkgver=2.11.0
pkgrel=1
pkgdesc='A modern list API for Emacs'
arch=('any')
@@ -10,19 +10,14 @@ url="https://github.com/magnars/dash.el"
license=('GPL')
makedepends=('emacs')
depends=('emacs')
-source=("https://github.com/magnars/dash.el/archive/$pkgver.tar.gz"
- 'https://github.com/magnars/dash.el/commit/dab0d1c.patch')
-sha256sums=('cf94c9b8b4ef951aebf068172f139d511d71520569c361db73877808981f05fe'
- 'e5845b5025e7d7b4d6dfd4619ff3d76c8ec01424b90ab86743baf168d93ec239')
-
-prepare() {
- cd dash.el-"$pkgver"
- patch -p1 < ../dab0d1c.patch
-}
+install=emacs-dash.install
+source=("https://github.com/magnars/dash.el/archive/$pkgver.tar.gz")
+sha256sums=('d888d34b9b86337c5740250f202e7f2efc3bf059b08a817a978bf54923673cde')
build() {
cd dash.el-"$pkgver"
emacs -batch -L . -f batch-byte-compile dash{,-functional}.el
+ sh create-docs.sh
}
package() {
@@ -30,4 +25,6 @@ package() {
install -d "$pkgdir"/usr/share/emacs/site-lisp/dash
install -Dm644 dash{,-functional}.{el,elc} "$pkgdir"/usr/share/emacs/site-lisp/dash
gzip "$pkgdir"/usr/share/emacs/site-lisp/dash/*.el
+ install -Dm644 dash.info "$pkgdir"/usr/share/info/dash.info
+ gzip "$pkgdir"/usr/share/info/dash.info
}
diff --git a/emacs-dash.install b/emacs-dash.install
new file mode 100644
index 00000000000..2cd15aeec81
--- /dev/null
+++ b/emacs-dash.install
@@ -0,0 +1,20 @@
+INFO_DIR=usr/share/info
+INFO_FILES=(dash)
+
+post_install() {
+ [[ -x usr/bin/install-info ]] || return 0
+ for f in ${INFO_FILES[@]}; do
+ install-info ${INFO_DIR}/$f.info.gz ${INFO_DIR}/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [[ -x usr/bin/install-info ]] || return 0
+ for f in ${INFO_FILES[@]}; do
+ install-info --delete ${INFO_DIR}/$f.info.gz ${INFO_DIR}/dir 2> /dev/null
+ done
+}