pkgname=git pkgver=2.47.1 pkgrel=1 pkgdesc="the fast distributed version control system" arch=('x86_64') url="https://git-scm.com/" license=('GPL-2.0-only') depends=('curl' 'expat' 'perl' 'openssl' 'pcre2' 'grep' 'shadow' 'zlib') makedepends=('python' 'python-asciidoc' 'xmlto') source=(https://www.kernel.org/pub/software/scm/${pkgname}/${pkgname}-${pkgver}.tar.xz) sha256sums=(f3d8f9bb23ae392374e91cd9d395970dabc5b9c5ee72f39884613cd84a6ed310) build() { cd ${pkgname}-${pkgver} local configure_args=( --with-gitconfig=/etc/gitconfig --with-python=python3 --with-libpcre2 --with-expat --with-curl ${configure_options} ) ./configure ${configure_args[@]} make make html make man } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} perllibdir=/usr/lib64/perl5/5.40/site_perl install make DESTDIR=${pkgdir} install-man make DESTDIR=${pkgdir} htmldir=/usr/share/doc/${pkgname}-${pkgver} install-html install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/man-pages/{html,text} mv ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/{git*.txt,man-pages/text} mv ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/{git*.,index.,man-pages/}html install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/technical/{html,text} mv ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/technical/{*.txt,text} mv ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/technical/{*.,}html install -vdm755 ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/howto/{html,text} mv ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/howto/{*.txt,text} mv ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/howto/{*.,}html sed -i '/^