summaryrefslogtreecommitdiff
path: root/user/colordiff/APKBUILD
blob: 0ef752514c5848dfa10d586fcd22d2f6acb0cf49 (plain) (blame)
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
# Contributor: Alice <alicela1n@protonmail.com>
# Maintainer: Alice <alicela1n@protonmail.com>
pkgname=colordiff
pkgver=1.0.21
pkgrel=0
pkgdesc="Wrapper for diff that produces the same output but with syntax highlighting"
url="https://www.colordiff.org/"
arch="noarch"
options="!check" # No test suite
license="GPL-3.0+"
depends="diffutils less perl"
makedepends="xmlto w3m"
subpackages="$pkgname-doc"
source="https://www.colordiff.org/$pkgname-$pkgver.tar.gz"

build() {
	make
}

package() {
	install -Dm 755 colordiff.pl "$pkgdir"/usr/bin/colordiff
	install -Dm 755 cdiff.sh "$pkgdir"/usr/bin/cdiff
	install -Dm 644 colordiff.1 "$pkgdir"/usr/share/man/man1/colordiff.1
	install -Dm 644 cdiff.1 "$pkgdir"/usr/share/man/man1/cdiff.1
	install -Dm 644 colordiffrc "$pkgdir"/etc/colordiffrc
}

sha512sums="e814e38db0db6e0ba420c64bc53815c1c9e74457390bbe45f31eb9539c068efc9354c11dbf1259b1a64bd3cd5b2cc452441f822e030af80d18fe5b5c5f627c9d  colordiff-1.0.21.tar.gz"