2006-02-23 15:26:10 +00:00
|
|
|
# Description: Directory content manager
|
2021-10-14 15:06:50 +02:00
|
|
|
# URL: https://git-scm.com/
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2021-11-15 21:51:52 +01:00
|
|
|
# Depends on: curl expat
|
2021-10-14 15:06:50 +02:00
|
|
|
# Optional: tk
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=git
|
2024-02-24 10:49:39 +01:00
|
|
|
version=2.44.0
|
2023-08-23 22:30:41 +02:00
|
|
|
release=1
|
2015-04-21 22:46:21 +02:00
|
|
|
source=(https://www.kernel.org/pub/software/scm/git/git-{,manpages-}$version.tar.xz
|
2022-01-31 14:08:24 +01:00
|
|
|
git gitd.rc)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2006-04-08 15:21:33 +00:00
|
|
|
build() {
|
2022-01-31 14:08:24 +01:00
|
|
|
cd $name-$version
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2022-01-31 14:08:24 +01:00
|
|
|
make CFLAGS="$CFLAGS" \
|
|
|
|
prefix=/usr \
|
|
|
|
gitexecdir=/usr/lib/git-core \
|
2023-06-26 00:06:28 +02:00
|
|
|
CFLAGS="$CFLAGS -flto -ffat-lto-objects" \
|
|
|
|
LDFLAGS="$LDFLAGS -flto -ffat-lto-objects" \
|
2022-01-31 14:08:24 +01:00
|
|
|
INSTALLSITEMAN3DIR=/usr/share/man/man3 \
|
2023-06-26 00:06:28 +02:00
|
|
|
perllibdir=$(/usr/bin/perl -MConfig -wle 'print $Config{installvendorlib}') \
|
|
|
|
INSTALL_SYMLINKS=1 \
|
|
|
|
USE_LIBPCRE2=1 \
|
2022-01-31 14:08:24 +01:00
|
|
|
DESTDIR=$PKG install
|
2006-06-10 21:56:33 +00:00
|
|
|
|
2022-01-31 14:08:24 +01:00
|
|
|
prt-get isinst bash-completion && install -Dm644 contrib/completion/git-completion.bash $PKG/usr/share/bash-completion/completions/git
|
2021-03-16 22:24:37 +00:00
|
|
|
|
2022-01-31 14:08:24 +01:00
|
|
|
cd $SRC
|
2006-06-10 21:56:33 +00:00
|
|
|
|
2022-01-31 14:08:24 +01:00
|
|
|
for i in man*; do
|
|
|
|
install -d $PKG/usr/share/man/$i
|
|
|
|
install -m 644 $i/* $PKG/usr/share/man/$i;
|
|
|
|
done
|
2006-10-19 16:08:04 +00:00
|
|
|
|
2022-01-31 14:08:24 +01:00
|
|
|
find $PKG \( -name perllocal.pod -o -name .packlist \) -delete
|
|
|
|
rm -rf $PKG/usr/share/{locale,gitk}
|
2015-04-21 22:46:21 +02:00
|
|
|
|
2022-01-31 14:08:24 +01:00
|
|
|
# install the git ports driver
|
|
|
|
install -Dm755 $SRC/git $PKG/etc/ports/drivers/git
|
2017-07-28 14:34:14 +02:00
|
|
|
|
2022-01-31 14:08:24 +01:00
|
|
|
install -D $SRC/gitd.rc $PKG/etc/rc.d/gitd
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|