blob: da33dba3bc9c53c41bd31f334bc963fa9c7becec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#!/bin/mkpkg
# description: Distributed version control system
# url: https://git-scm.com
name=git
version=2.55.0
release=1
source=(https://mirrors.edge.kernel.org/pub/software/scm/git/git-$version.tar.xz)
depends=(zlib libressl curl expat pcre2)
makedeps=(perl)
sha256sums=(
"457fdb04dc8728e007d4688695e6912e6f680727920f2a40bf11eacc17505357"
)
build() {
cd $name-$version
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--with-openssl \
--with-curl \
--with-expat \
--with-libpcre2 \
--without-tcltk \
--without-python
make \
NO_GETTEXT=1 \
INSTALL_SYMLINKS=1 \
perllibdir=/usr/lib/perl5
make DESTDIR=$PKG \
NO_GETTEXT=1 \
INSTALL_SYMLINKS=1 \
perllibdir=/usr/lib/perl5 \
install
# Shell completion
install -d $PKG/usr/share/bash-completion/completions
install -m 644 contrib/completion/git-completion.bash \
$PKG/usr/share/bash-completion/completions/git
# Remove CVS/SVN/email/GUI tools most users don't need
rm -f $PKG/usr/bin/git-cvsserver
rm -rf $PKG/usr/lib/git-core/git-cvs*
rm -rf $PKG/usr/lib/git-core/git-svn
rm -rf $PKG/usr/lib/perl5/Git/SVN*
rm -f $PKG/usr/lib/git-core/git-archimport
rm -f $PKG/usr/lib/git-core/git-p4
rm -f $PKG/usr/lib/git-core/git-send-email
rm -f $PKG/usr/lib/git-core/git-gui*
rm -rf $PKG/usr/share/git-gui
rm -rf $PKG/usr/share/gitk
rm -rf $PKG/usr/share/gitweb
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|