# Compiling Time: 1.80 SBU # Maintainer: crazy # most people won't need the html version of manpages, but we don't want to # break git help -w USE_HTMLMAN=${USE_HTMLMAN:-"y"} pkgname=git pkgver=2.32.0 pkgrel=1 pkgdesc="A fast, scalable, distributed revision control system." _F_archive_grepv="rc" url="http://git-scm.com/" source=(https://www.kernel.org/pub/software/scm/git/git-$pkgver.tar.xz) up2date="Flasttar https://www.kernel.org/pub/software/scm/git/" depends=('curl>=7.19.0' 'expat' 'pcre2' 'perl-error' 'openssl>=1.1.1' 'perl-authen-sasl') backup=(etc/sysconfig/git) makedepends=('asciidoc' 'docbook-xsl>=1.73.0-2' 'docbook-xml' \ 'docbook2x>=0.8.3-3' 'sgml-common' 'xmlto' 'gettext') #'dblatex>=0.3-3' 'texlive' 'texlive-lang-extra') groups=('devel-extra') replaces=('cogito' 'bk-client') archs=('x86_64') source=(${source[@]} gitweb.modules.d gitweb.conf README.Frugalware \ $pkgname.service $pkgname.sysconfig) sha1sums=('8ce1a0976e99d5d1a1368f4aa679994efff1588a' \ 'c60be6e086241b85b1f0d89db22c24fc21dc6432' \ '58698ef6cf0dad734e1a1ee5689c0c4d83bf27b5' \ '92b64c9b49242935ca6ae35b3a9cad728a0c2d55' \ 'fb98eb788f2d81f6795d9d83755197f41430ee62' \ '66caca0485216bed4814389b8219258f3992601b') options+=('scriptlet') subpkgs=('gitweb' 'git-gui' 'gitk') subdescs=('Web interface for Git.' 'Git GUI tool.' 'Git revision tree visualiser.') subdepends=('' 'tk' 'tk') subrodepends=("git>=$pkgver" "git>=$pkgver" "git>=$pkgver") subbackup=('etc/gitweb.conf etc/httpd/conf/modules.d/gitweb.conf' '' '') subgroups=('network-extra' 'xapps-extra' 'xapps-extra') subarchs=('x86_64' 'x86_64' 'x86_64') _F_systemd_units=($pkgname=) Finclude systemd build() { Fcd Fpatchall # /libexec/ Fsed 'libexec/git-core' 'lib/git/git-core' Makefile # don't install the source of the manpages Fsed '\t\*.txt ' '\t' Documentation/install-webdoc.sh if ! Fuse $USE_HTMLMAN; then # we don't need the html version of manpages Fsed '^DOC_HTML=.*' 'DOC_HTML=' Documentation/Makefile fi Fconf --with-libpcre2 sed -i '/DOCBOOK2X_TEXI/s/docbook2x-texi/docbook2texi/' Documentation/Makefile || Fdie build_settings="V=1 ETC_GITCONFIG=/etc/gitconfig htmldir=/usr/share/doc/$pkgname-$pkgver \ mandir=/usr/share/man pdfdir=/usr/share/doc/$pkgname-$pkgver \ ASCIIDOC_NO_ROFF=YesPlease perllibdir=/usr/lib/perl5/site_perl/current" Fexec make $build_settings all || Fdie Fexec make -j1 $build_settings doc info || Fdie Fmakeinstall $build_settings install-doc install-info Fexec make -C Documentation WEBDOC_DEST=$Fdestdir/usr/share/doc/$pkgname-$pkgver install-webdoc || Fdie # broken symlink Frm /usr/share/doc/git-$pkgver/index.html Fdocrel Documentation/SubmittingPatches Fdocrel Documentation/technical # contrib dir Fcprel contrib /usr/share/git-core/ # bash completion Fln /usr/share/git-core/contrib/completion/git-completion.bash /etc/bash_completion.d/git # gitweb Fmkdir /var/www/gitweb Fexec rm gitweb/gitweb.perl Fexec cp -a gitweb/git* gitweb/static/* $Fdestdir/var/www/gitweb || return 1 Ffile gitweb.modules.d /etc/httpd/conf/modules.d/gitweb.conf Ffile /etc/gitweb.conf Fsplit gitweb /etc/{httpd,gitweb.conf} /var Fdoc README.Frugalware # git-daemon Ffile git.sysconfig /etc/sysconfig/git # Fix permissions Ffileschmod usr/share/git-core/templates 755 # git-gui Fsplit git-gui usr/lib/$pkgname/git-core/git-{gui,gui--askpass,citool} Fsplit git-gui usr/share/git-gui Fsplit git-gui usr/share/man/man1/git-{gui,citool}.1 Fsplit git-gui usr/share/doc/git-$pkgver/git-{gui,citool}.html # gitk Fsplit gitk usr/bin/gitk Fsplit gitk usr/share/man/man1/gitk.1 Fsplit gitk usr/share/doc/git-$pkgver/gitk.html Ffile /lib/systemd/system/$pkgname.service Fgenscriptlet } # optimization OK