summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndrii Burkivskyi2019-12-19 07:51:13 +0100
committerAndrii Burkivskyi2019-12-19 07:51:13 +0100
commit3555c23f9a7576c39c7e107e230d371e41eaa10c (patch)
treea70d1794bf4284a696a89046b3b66e259d287227 /PKGBUILD
parenta2dd59be49de9d953381890bdbc62618bb84a0cb (diff)
downloadaur-3555c23f9a7576c39c7e107e230d371e41eaa10c.tar.gz
lasttry
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 16 insertions, 18 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 31603ad70ec..544d59b45c3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,30 @@
# Maintainer: Andrii Burkivskyi <buryk212@gmail.com>
-pkgname=zsh-extract-git
-_gitname=zsh-extract
+_gitname='zsh-extract'
+pkgname="${_gitname}-git"
pkgver=r2.85ee9a2
pkgrel=1
pkgdesc="This plugin defines a function called extract that extracts the archive file you pass it, and it supports a wide variety of archive filetypes."
-arch=(any)
-url='https://github.com/le0me55i/zsh-extract'
+arch=('any')
+url="https://github.com/le0me55i/zsh-extract"
license=(custom:MIT)
-depends=(zsh)
-makedepends=(git)
-provides=(zsh-extract)
-conflicts=(zsh-extract)
-source=('git://github.com/le0me55i/zsh-extract')
+depends=('zsh')
+makedepends=('git')
+provides=('zsh-extract')
+conflicts=('zsh-extract')
+source=("${_gitname}::${url//https/git}")
install=zsh-extract-git.install
sha256sum=('SKIP')
pkgver() {
- cd "$_gitname"
- commit=$(git rev-list --count master)
- hash=$(git rev-parse --short HEAD)
- echo "r$commit.$hash"
+ cd "${srcdir}/${_gitname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
- cd "$_gitname"
+ cd "${srcdir}/${_gitname}"
- install -Dm644 extract.plugin.zsh "$pkgdir"/usr/share/zsh/plugins/"$_gitname"/extract.plugin.zsh
- install -Dm644 _extract "$pkgdir"/usr/share/zsh/site-functions/_extract
- install -Dm644 README.md "$pkgdir"/usr/share/doc/"$_gitname"/README.md
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+ install -Dm644 extract.plugin.zsh "${pkgdir}/usr/share/zsh/plugins/${_gitname}/extract.plugin.zsh"
+ install -Dm644 _extract "${pkgdir}/usr/share/zsh/site-functions/_extract"
+ install -Dm644 README.md "${pkgdir}/usr/share/doc/${_gitname}/README.md"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}