summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5410532bf7a3ef76674c4c82a71fab234a6f20ac (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
# Maintainer: Alec Mev <alec@mev.earth>

pkgname=zimfw-environment-git
pkgver=r27.aacae4d
pkgrel=1
pkgdesc='Zsh plugin that sets sane Zsh built-in environment options'
arch=('any')
url=https://github.com/zimfw/environment
license=('MIT')
depends=('zsh')
makedepends=('git')
source=("${pkgname}::git+https://github.com/zimfw/environment.git")
sha256sums=('SKIP')

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

package() {
  cd "${pkgname}"
  install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
  install -Dm644 -t "${pkgdir}/usr/share/zsh/plugins/${pkgname::-4}" init.zsh
}