opt/git/Pkgfile

40 lines
990 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Directory content manager
# URL: https://git-scm.com/
2020-07-08 17:29:52 +02:00
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: expat curl
2020-08-16 15:28:11 +02:00
# Optional: tk
2006-02-23 16:26:10 +01:00
name=git
2021-03-10 09:07:43 +01:00
version=2.30.2
2019-06-24 23:06:59 +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
2017-07-28 14:34:14 +02:00
git gitd.rc)
2006-02-23 16:26:10 +01:00
build() {
2017-07-28 14:34:14 +02:00
cd $name-$version
2006-02-23 16:26:10 +01:00
make CFLAGS="$CFLAGS" \
prefix=/usr \
gitexecdir=/usr/lib/git-core \
INSTALLSITEMAN3DIR=/usr/share/man/man3 \
2020-06-10 10:38:31 +02:00
perllibdir=$(perl -e 'use Config; print $Config::Config{'installsitelib'}') \
DESTDIR=$PKG install
2017-07-28 14:34:14 +02:00
cd $SRC
2017-07-28 14:34:14 +02:00
for i in man*; do
install -d $PKG/usr/share/man/$i
install -m 644 $i/* $PKG/usr/share/man/$i;
done
2017-07-28 14:34:14 +02: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
2017-07-28 14:34:14 +02:00
# install the git ports driver
install -d $PKG/etc/ports/drivers
install $SRC/git $PKG/etc/ports/drivers/git
install -D $SRC/gitd.rc $PKG/etc/rc.d/gitd
2015-04-21 22:46:21 +02:00
2006-02-23 16:26:10 +01:00
}