diff options
Diffstat (limited to 'main/git/APKBUILD')
-rw-r--r-- | main/git/APKBUILD | 12 |
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" |