summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxim Moseychuk2017-02-27 13:17:00 +0300
committerMaxim Moseychuk2017-02-27 13:19:17 +0300
commit95d5836457ec617a92988cd59b32bc5e454b8a5e (patch)
tree2dd8ba5ab15eaa018db8572f6e1a0c694632120a
parentb1bca753c96d022f029570ad5dc78d8c830811c2 (diff)
downloadaur-95d5836457ec617a92988cd59b32bc5e454b8a5e.tar.gz
Update pkg
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD12
-rw-r--r--antigen.install7
3 files changed, 13 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3ed7186fe6c..b87d2e9c153 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,12 @@
pkgbase = antigen-git
pkgdesc = A plugin manager for zsh, inspired by oh-my-zsh and vundle.
- pkgver = r358.7860ce7
+ pkgver = v1.4.1.r0.g0bc49f9
pkgrel = 1
url = https://github.com/zsh-users/antigen
install = antigen.install
arch = any
license = MIT
- makedepends = git
+ makedepends = git make
depends = zsh
source = git+https://github.com/zsh-users/antigen
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 73a62fdf1ad..9f73ce8b6da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,11 @@
+# Maintainer: Maxim Moseychuk <franchesko.salias.hudro.pedros@gmail.com>
# Maintainer: oozyslug <oozyslug at gmail dot com>
# Contributor: oozyslug <oozyslug at gmail dot com>
# Submitter: oozyslug <oozyslug at gmail dot com>
_pkgname=antigen
pkgname=antigen-git
-pkgver=r358.7860ce7
+pkgver=v1.4.1.r0.g0bc49f9
pkgrel=1
pkgdesc="A plugin manager for zsh, inspired by oh-my-zsh and vundle."
arch=('any')
@@ -13,18 +14,15 @@ source=("git+https://github.com/zsh-users/antigen")
md5sums=('SKIP')
license=('MIT')
depends=('zsh')
-makedepends=('git')
+makedepends=('git make')
install='antigen.install'
pkgver() {
cd $srcdir/$_pkgname
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd $srcdir/$_pkgname
- mkdir -p $pkgdir/usr/share/zsh/scripts/antigen
- cp -R ./ $pkgdir/usr/share/zsh/scripts/antigen
- cd $pkgdir/usr/share/zsh/scripts/antigen
- rm -R .git
+ make PREFIX=$pkgdir/usr/share/zsh build install
}
diff --git a/antigen.install b/antigen.install
index 218b82909a3..b521cec67fa 100644
--- a/antigen.install
+++ b/antigen.install
@@ -1,4 +1,9 @@
post_install() {
echo "To use antigen, include the following line in your .zshrc:
- source /usr/share/zsh/scripts/antigen/antigen.zsh "
+ source /usr/share/zsh/share/antigen.zsh"
+}
+
+post_upgrade() {
+ echo "To use antigen, include the following line in your .zshrc:
+ source /usr/share/zsh/share/antigen.zsh"
}