aboutsummaryrefslogtreecommitdiffstats
path: root/main/git
diff options
context:
space:
mode:
authorHiroshi Kajisha <kajisha@gmail.com>2018-01-07 10:05:33 +0900
committerWilliam Pitcock <nenolod@dereferenced.org>2018-01-10 07:46:02 +0000
commitaffb03ce83117dc41beba4444321a83100b7459b (patch)
tree45053c561c3fbe4a926c0b8fa63ad2c2bda720f4 /main/git
parent0f1c436cdbc63bb1f0050f9b89514120726caa92 (diff)
downloadaports-affb03ce83117dc41beba4444321a83100b7459b.tar.bz2
aports-affb03ce83117dc41beba4444321a83100b7459b.tar.xz
main/git: add diff-highlight subpackage
Diffstat (limited to 'main/git')
-rw-r--r--main/git/APKBUILD12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/git/APKBUILD b/main/git/APKBUILD
index 0f71549895..6a2d6e90a8 100644
--- a/main/git/APKBUILD
+++ b/main/git/APKBUILD
@@ -31,6 +31,7 @@ subpackages="$pkgname-doc
$pkgname-perl:_git_perl:noarch
$pkgname-gui::noarch
$pkgname-gitk::noarch
+ $pkgname-diff-highlight:diff_highlight:noarch
"
# we need tcl and tk to be built before git due to git-gui and gitk
makedepends="zlib-dev libressl-dev curl-dev expat-dev perl-dev python2-dev
@@ -223,6 +224,17 @@ gitk() {
mv "$pkgdir"/usr/bin/gitk "$subpkgdir"/usr/bin/
}
+diff_highlight() {
+ depends="git=$pkgver-r$pkgrel perl"
+ pkgdesc="diff highlight for git"
+ replaces=""
+
+ cd "$builddir"/contrib/diff-highlight
+ make prefix=/usr DESTDIR="$subpkgdir"
+ mkdir -p "$subpkgdir"/usr/bin
+ install -Dm755 diff-highlight "$subpkgdir"/usr/bin/
+}
+
# catch-the-rest of stuff that needs perl
_git_perl() {
depends="git=$pkgver-r$pkgrel perl-git=$pkgver-r$pkgrel perl"