summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7cd80823071c69cc5e332d2c86cfed6b344bd5d (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
# Maintainer icasdri <icasdri at gmail dot com>

_pkgname=diff-so-fancy
pkgname=diff-so-fancy-git
pkgver=v0.1.2.r27.g1544df3
pkgrel=1
pkgdesc="Good-looking diffs with diff-highlight and more (git version)"
arch=(any)
url="https://github.com/stevemao/diff-so-fancy"
license=('MIT')
provides=('diff-so-fancy')
conflicts=('diff-so-fancy')
install="${pkgname}.install"
source=("git+${url}.git")
sha384sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
   cd "${srcdir}/${_pkgname}"
   install -Dm755 'diff-so-fancy' "${pkgdir}/usr/bin/diff-so-fancy"
   install -Dm755 'third_party/diff-highlight/diff-highlight' "${pkgdir}/usr/bin/diff-highlight"
}