PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/core/git/PAGBUILD.yaml main

55 lines Raw ← Back
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
pkgname: git
pkgver: '2.56.0'
pkgrel: '1'
pkgdesc: 'Distributed version control system designed to handle small to very large projects.'
url: 'https://git-scm.com/'
arch: x86_64
depends:
- curl
- expat
- openssl
- pcre2
makedepends:
- gettext
- python

source:
- 'https://mirrors.edge.kernel.org/pub/software/scm/${pkgname}/${pkgname}-${pkgver}.tar.xz'
- 'https://mirrors.edge.kernel.org/pub/software/scm/${pkgname}/${pkgname}-manpages-${pkgver}.tar.xz'
- 'https://mirrors.edge.kernel.org/pub/software/scm/${pkgname}/${pkgname}-htmldocs-${pkgver}.tar.xz'

sha256sums:
- SKIP
- SKIP
- SKIP

build: |
  cd ${pkgname}-${pkgver}

  ./configure --prefix=/usr \
  --libexecdir=/usr/lib \
  --with-gitconfig=/etc/gitconfig \
  --with-python=python3 --with-libpcre2

  NO_RUST=1 make
  NO_RUST=1 make DESTDIR=${PKGDIR} install

  mkdir -p ${PKGDIR}/usr/share/man

  cd ..
  # man pages i docs sa w OSOBNYCH tarballach (git-manpages, git-htmldocs)
  cp -a man1 man5 man7 ${PKGDIR}/usr/share/man/ 2>/dev/null || true
  mkdir -p ${PKGDIR}/usr/share/doc/${pkgname}
  for f in *
  do
  	case "$f" in man1|man5|man7|*.tar.xz|*.tar.gz|*.tgz) continue;; esac
  	cp -a "$f" ${PKGDIR}/usr/share/doc/${pkgname}/
  done

  chown -R root:root ${PKGDIR}/usr/share/{man,doc}

  find ${PKGDIR}/usr/share/doc/${pkgname} -type d -exec chmod 755 {} \;
  find ${PKGDIR}/usr/share/doc/${pkgname} -type f -exec chmod 644 {} \;

package: |
  true