summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdbe2ed2512a3f5e2fb461307f85fd95600fd264 (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
# Contributor: Juan Martínez <mratmartinez at anche.no>

pkgname=with-git
_gitname=with
pkgver=r64.28eb40b
pkgrel=1
pkgdesc="Command prefixing for continuous workflow using a single tool"
arch=('any')
url="https://github.com/mchav/with"
license=('Apache-2.0')
makedepends=('git')
source=("git+${url}")
sha256sums=('SKIP')

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

package() {
  cd $_gitname
  install -Dm755 -t "$pkgdir/usr/bin" with
  install -Dm644 with.bash-completion "$pkgdir/usr/share/bash-completion/completions/with"
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}