40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
# Description: Directory content manager
|
|
# URL: https://git-scm.com/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: curl expat
|
|
# Optional: tk
|
|
|
|
name=git
|
|
version=2.38.1
|
|
release=1
|
|
source=(https://www.kernel.org/pub/software/scm/git/git-{,manpages-}$version.tar.xz
|
|
git gitd.rc)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
make CFLAGS="$CFLAGS" \
|
|
prefix=/usr \
|
|
gitexecdir=/usr/lib/git-core \
|
|
INSTALLSITEMAN3DIR=/usr/share/man/man3 \
|
|
perllibdir=$(perl -e 'use Config; print $Config::Config{'installsitelib'}') \
|
|
DESTDIR=$PKG install
|
|
|
|
prt-get isinst bash-completion && install -Dm644 contrib/completion/git-completion.bash $PKG/usr/share/bash-completion/completions/git
|
|
|
|
cd $SRC
|
|
|
|
for i in man*; do
|
|
install -d $PKG/usr/share/man/$i
|
|
install -m 644 $i/* $PKG/usr/share/man/$i;
|
|
done
|
|
|
|
find $PKG \( -name perllocal.pod -o -name .packlist \) -delete
|
|
rm -rf $PKG/usr/share/{locale,gitk}
|
|
|
|
# install the git ports driver
|
|
install -Dm755 $SRC/git $PKG/etc/ports/drivers/git
|
|
|
|
install -D $SRC/gitd.rc $PKG/etc/rc.d/gitd
|
|
}
|