milis/talimatname/temel-ek/git/talimat

46 lines
1015 B
Plaintext

# Description: Distributed version control system designed to handle small to very large projects.
# URL: http://git-scm.com/
# Maintainers: Junio C Hamano, Linus Torvalds
# Packagers: tnut at nutyx dot org, pierre at nutyx dot org
# Depends on: openssh
name=git
version=2.7.1
release=1
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 {} \;
}