summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ad6affa36953ed60b20256bdd3a732b336c732e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
# Contributor: Grigorii Horos <grigorii dot horos at gmail dot com>

pkgname=zpm-git
pkgver=r1156.0f562f8
pkgrel=2
pkgdesc="A plugin manager for zsh"
arch=('any')
url="https://github.com/zpm-zsh/zpm"
license=('LGPL3')
depends=('zsh')
optdepends=('parallel: Parallel execution'
            'rush: Parallel execution')
makedepends=('git')
install="$pkgname.install"
source=("$pkgname::git+$url")
sha256sums=('SKIP')

pkgver()  {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$pkgname"
  find bin functions lib plugins zpm.zsh \
    -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/zpm/{}" \;
  install -Dm 644 zshrc "$pkgdir/usr/share/zpm/zshrc-example.zsh"
  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}