summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d7ea73f146818aa8fa584a26900247bf7ee5be47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Crestwave <crest.wave@yahoo.com>

pkgname=birch-git
pkgver=r32.c46909f
pkgrel=1
pkgdesc="An IRC client written in pure bash"
arch=('any')
url="https://github.com/dylanaraps/birch"
license=('MIT')
makedepends=('git')
source=("git+${url}.git")
sha256sums=('SKIP')

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

package() {
  cd "$srcdir/birch"
  make DESTDIR="$pkgdir" install
  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md
}