This commit is contained in:
Arti Zirk 2019-08-21 14:03:29 +03:00
commit 40eaed3a56
3 changed files with 51 additions and 0 deletions

16
.SRCINFO Normal file
View File

@ -0,0 +1,16 @@
pkgbase = aptly-zsh-completion-git
pkgdesc = ZSH completion for aptly
pkgver = r18.8aff667
pkgrel = 1
url = https://github.com/steinymity/aptly-zsh
arch = any
license = MIT
makedepends = git
depends = zsh
provides = aptly-zsh-completion-git
conflicts = aptly-zsh-completion-git
source = aptly-zsh-completion-git::git+https://github.com/steinymity/aptly-zsh
md5sums = SKIP
pkgname = aptly-zsh-completion-git

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
pkg
src
*tar*
aptly-zsh-completion-git

31
PKGBUILD Normal file
View File

@ -0,0 +1,31 @@
# Maintainer: Arti Zirk <arti.zirk@gmail.com>
pkgname=aptly-zsh-completion-git
pkgver=r18.8aff667
pkgrel=1
pkgdesc="ZSH completion for aptly"
arch=('any')
url="https://github.com/steinymity/aptly-zsh"
license=('MIT')
groups=()
depends=('zsh')
makedepends=('git')
provides=("${pkgname}")
conflicts=("${pkgname}")
replaces=()
backup=()
options=()
install=
source=('aptly-zsh-completion-git::git+https://github.com/steinymity/aptly-zsh')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/${pkgname}"
install -Dm644 _aptly "$pkgdir/usr/share/zsh/site-functions/_aptly"
}