summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 597b578243ea527e0677cb5a89d74116e814825d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pkgname=nfu-git
pkgver=r354.0e7c830
pkgrel=1
pkgdesc="Numeric Fu for the command line"
arch=('any')
url="https://github.com/spencertipping/nfu"
license=('MIT')
depends=('perl' 'perl-json')
makedepends=('git')
provides=('nfu')
source=("git+${url}.git")
sha256sums=('SKIP')

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

package() {
  cd nfu
  install -Dm755 nfu -t "$pkgdir/usr/bin"
  install -Dm644 *.md -t "$pkgdir/usr/share/doc/$pkgname"
}