#!/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