summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78be1f0c1c33004654ec9d7be668335e0c782b1f (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: fabon <syobon.hinata.public[at]gmail[dot]com>
pkgname='difftance-git'
pkgver=r5.25789f0
pkgrel=2
pkgdesc="A diff tool to show edit distance"
arch=('i686' 'x86_64')
url="https://github.com/fabon-f/difftance"
license=('MIT')
depends=('crystal')
makedepends=('git' 'make' 'shards')
conflicts=('difftance-bin')

source=("${pkgname}::git+https://github.com/fabon-f/difftance.git")
md5sums=('SKIP')

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

build() {
  cd "${srcdir}/${pkgname}"
  make build
}

package() {
  cd "${srcdir}/${pkgname}"
  make install PREFIX="${pkgdir}/usr"
  install -Dm755 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}