summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSebastian Reuße2015-12-13 11:26:15 +0100
committerSebastian Reuße2015-12-13 11:31:06 +0100
commit2b53f2293f76728547d04a257521aef1174c465d (patch)
tree29d950782dfe3c3fa5b48b2e38079f6e76513a2b /PKGBUILD
downloadaur-2b53f2293f76728547d04a257521aef1174c465d.tar.gz
Init.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..941130d7036
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Sebastian Reuße <seb@wirrsal.net>
+pkgname=zsh-autopair-git
+_gitname=zsh-autopair
+pkgver=r18.87c209e
+pkgrel=1
+pkgdesc="Auto-close and delete matching delimiters in Zsh"
+arch=(any)
+url=https://github.com/hlissner/zsh-autopair
+license=(custom:MIT)
+depends=(zsh)
+makedepends=(git)
+provides=(zsh-autopair)
+conflicts=(zsh-autopair)
+source=(
+ git+https://github.com/hlissner/zsh-autopair
+ example-bindings.zsh
+)
+install=zsh-autopair-git.install
+sha256sums=(
+ SKIP
+ a7578c06251333ef096e82bb06244ec5ebbb8fe8039343a7544966fb9a76c5d6
+)
+
+
+pkgver() {
+ cd "$_gitname"
+ commit=$(git rev-list --count master)
+ hash=$(git rev-parse --short HEAD)
+ echo "r$commit.$hash"
+}
+
+package() {
+ cd "$_gitname"
+
+ install -Dm644 autopair.zsh "$pkgdir"/usr/share/zsh/plugins/"$_gitname"/autopair.zsh
+ install -Dm644 README.md "$pkgdir"/usr/share/doc/"$_gitname"/README.md
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+
+ install -Dm644 "$startdir"/example-bindings.zsh "$pkgdir"/usr/share/zsh/plugins/"$_gitname"/example-bindings.zsh
+}