summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99a66e415d809ff076aa0d7fa019e3539b4d88fb (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=1
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')
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"
}