aboutsummaryrefslogtreecommitdiffstats
path: root/main/git
diff options
context:
space:
mode:
authorAndrew Hills <ahills@ednos.net>2015-05-29 14:04:23 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-09 12:09:49 +0000
commitafd656689369ebcdf8e0b955792f77127fd8bb55 (patch)
treee058e6b8a530337fea19b6a306d7f6835633dbb1 /main/git
parent382c368436da473b43a83626dbf45b279ba82da9 (diff)
downloadaports-afd656689369ebcdf8e0b955792f77127fd8bb55.tar.bz2
aports-afd656689369ebcdf8e0b955792f77127fd8bb55.tar.xz
main/git: add git-gui and gitk subpackages
Diffstat (limited to 'main/git')
-rw-r--r--main/git/APKBUILD30
1 files changed, 28 insertions, 2 deletions
diff --git a/main/git/APKBUILD b/main/git/APKBUILD
index 5ab057b6b8..636f571b65 100644
--- a/main/git/APKBUILD
+++ b/main/git/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=git
pkgver=2.4.2
-pkgrel=0
+pkgrel=1
pkgdesc="A distributed version control system"
url="http://git.or.cz/"
arch="all"
@@ -24,6 +24,8 @@ subpackages="$pkgname-doc
$pkgname-subtree
$pkgname-subtree-doc:subtree_doc
$pkgname-perl:_git_perl
+ $pkgname-gui
+ $pkgname-gitk
"
makedepends="zlib-dev openssl-dev curl-dev expat-dev perl-dev python-dev
@@ -37,7 +39,6 @@ source="git-$pkgver.tar.gz::https://github.com/git/git/archive/v$pkgver.tar.gz
_makeopts="
NO_GETTEXT=YesPlease
NO_NSEC=YesPlease
- NO_TCLTK=YesPlease
NO_SVN_TESTS=YesPlease
USE_LIBPCRE=1"
@@ -189,6 +190,31 @@ subtree_doc() {
make install-man prefix=/usr DESTDIR="$subpkgdir"
}
+gui() {
+ depends="git=$pkgver-r$pkgrel tcl tk"
+ pkgdesc="GUI interface for git"
+ arch="noarch"
+ replaces=""
+
+ mkdir -p "$subpkgdir"/usr/share "$subpkgdir"/usr/libexec/git-core
+ mv "$pkgdir"/usr/share/git-gui "$subpkgdir"/usr/share/
+ mv "$pkgdir"/usr/libexec/git-core/git-citool \
+ "$pkgdir"/usr/libexec/git-core/git-gui \
+ "$pkgdir"/usr/libexec/git-core/git-gui--askpass \
+ "$subpkgdir"/usr/libexec/git-core/
+}
+
+gitk() {
+ depends="git=$pkgver-r$pkgrel tcl tk"
+ pkgdesc="Gitk interface for git"
+ arch="noarch"
+ replaces=""
+
+ mkdir -p "$subpkgdir"/usr/share "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/share/gitk "$subpkgdir"/usr/share/
+ mv "$pkgdir"/usr/bin/gitk "$subpkgdir"/usr/bin/
+}
+
# catch-the-rest of stuff that needs perl
_git_perl() {
depends="git=$pkgver-r$pkgrel perl-git=$pkgver-r$pkgrel perl"