summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD31
2 files changed, 17 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 89acaf88ea4..faa64baa995 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,16 @@
-# Generated by mksrcinfo v8
-# Wed May 31 15:55:07 UTC 2017
pkgbase = emacs-ansible
pkgdesc = Ansible minor mode for Emacs
pkgver = 0.1.0
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/k1LoW/emacs-ansible
install = emacs-ansible.install
arch = any
license = GPL3
- depends = emacs
depends = emacs-s
depends = emacs-f
depends = emacs-yasnippet
- source = https://github.com/k1LoW/emacs-ansible/archive/master.zip
- sha256sums = f6a53e781277696104f23ed304b318c38fd17a6d9a254e4c592ad178eb17a8eb
+ source = emacs-ansible-0.1.0.tar.gz::https://github.com/k1LoW/emacs-ansible/archive/0.1.0.tar.gz
+ sha256sums = 0de0cf9d9506b3abf0c27e72eea47282e81abb3d8b7c2808f1ab401456d1aa8f
pkgname = emacs-ansible
diff --git a/PKGBUILD b/PKGBUILD
index 5ff0ea6b985..6cf38374b6d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,27 @@
-# Maintainer: Alex Whitt <alex.joseph.whitt@gmail.com>
+# Contributor: Alex Whitt <alex.joseph.whitt@gmail.com>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
-_pkgsrcname=emacs-ansible
-_pkgmaintainer=k1LoW
-_pkgdestdirname=ansible
-_versionprefix=
pkgver=0.1.0
-pkgrel=3
+pkgrel=4
pkgdesc="Ansible minor mode for Emacs"
-pkgname=emacs-${_pkgdestdirname}
-arch=(any)
-url="https://github.com/${_pkgmaintainer}/${_pkgsrcname}"
+pkgname=emacs-ansible
+arch=('any')
+url="https://github.com/k1LoW/emacs-ansible"
license=('GPL3')
-depends=('emacs' 'emacs-s' 'emacs-f' 'emacs-yasnippet')
-source=("https://github.com/k1LoW/emacs-ansible/archive/master.zip")
-sha256sums=('f6a53e781277696104f23ed304b318c38fd17a6d9a254e4c592ad178eb17a8eb')
+depends=('emacs-s' 'emacs-f' 'emacs-yasnippet')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/k1LoW/emacs-ansible/archive/$pkgver.tar.gz")
+sha256sums=('0de0cf9d9506b3abf0c27e72eea47282e81abb3d8b7c2808f1ab401456d1aa8f')
install=${pkgname}.install
build() {
- cd "${srcdir}/${_pkgsrcname}-master"
+ cd $pkgname-$pkgver
emacs -q --no-splash -batch -L . -f batch-byte-compile *.el
}
package() {
- cd "${srcdir}/${_pkgsrcname}-master"
- mkdir -p "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
- install -m644 *.el{c,} "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
+ cd $pkgname-$pkgver
+ mkdir -p "$pkgdir"/usr/share/emacs/site-lisp/
+ install -m644 *.el{c,} "$pkgdir"/usr/share/emacs/site-lisp/
- cp -dr --preserve=mode,timestamp snippets "${pkgdir}/usr/share/emacs/site-lisp/${_pkgdestdirname}/"
+ cp -dr --preserve=mode,timestamp snippets "$pkgdir"/usr/share/emacs/site-lisp/
}