# Maintainers: Junio C Hamano, Linus Torvalds
# Packagers: tnut at nutyx dot org, pierre at nutyx dot org
# Depends on: openssh

description="Distributed version control system designed to handle small to very large projects."
name=git
version=2.9.3
release=1
url="http://git-scm.com/"

source=( https://www.kernel.org/pub/software/scm/$name/$name{,-manpages,-htmldocs}-$version.tar.xz)
run=(openssh)

PKGMK_GROUPS=(doc man)

build() {
cd $name-$version

./configure --prefix=/usr \
--libexecdir=/usr/lib \
--with-gitconfig=/etc/gitconfig \
--without-python

make
make DESTDIR=$PKG install

mkdir -p $PKG/usr/share/{man,doc/git-$version}

cd $SRC
for i in *.txt *.html howto RelNotes technical
do
	cp -a $i \
	$PKG/usr/share/doc/git-$version
done

mv man* \
$PKG/usr/share/man

chown -R root:root $PKG/usr/share/{man,doc}

find $PKG/usr/share/doc/git-$version -type d -exec chmod 755 {} \;
find $PKG/usr/share/doc/git-$version -type f -exec chmod 644 {} \;

find $PKG -type f -name perllocal.pod -exec rm {} \;
}
