diff options
author | Orestis Floros | 2020-06-14 10:10:03 +0200 |
---|---|---|
committer | Orestis Floros | 2020-06-14 10:13:44 +0200 |
commit | f5d8a4baea98a75aba76101d13cb4db33843213c (patch) | |
tree | d407d89a8f6449f12ca1aba794ab3679a4f9235e /PKGBUILD | |
download | aur-f5d8a4baea98a75aba76101d13cb4db33843213c.tar.gz |
Add package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8023f7f0fa65 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Orestis Floros <orestisflo@gmail.com> +_name='zsh-background-notify' +pkgname="${_name}-git" +pkgver=r31.d5f0430 +pkgrel=1 +pkgdesc="Cross-platform background notifications for long running commands!" +url="https://github.com/t413/zsh-background-notify" +arch=('any') +depends=('zsh') +makedepends=('git') +provides=($_name) +source=("${_name}::${url//https/git}") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_name}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "${srcdir}/${_name}" + install -d "${pkgdir}/usr/share/zsh/plugins/${_name}" + cp -a --no-preserve=ownership *.zsh "${pkgdir}/usr/share/zsh/plugins/${_name}" +} |