# Maintainer: Sven-Hendrik Haase pkgname=gitlab-gitaly pkgver=0.25.0 pkgrel=1 pkgdesc="Speed up Git access using caching" arch=('x86_64') url="https://gitlab.com/gitlab-org/gitaly" license=('MIT') depends=('glibc') makedepends=('git' 'go') backup=("etc/gitlab-gitaly/config.toml") source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/gitlab-org/gitaly/repository/archive.tar.gz?ref=v${pkgver}" "gitlab-gitaly.service") sha512sums=('aa6900a1d48080726fb6a0bd78fa213029771f29a1a37aa5d8c1a6465ec1632d9baa2a874d29a9688326445015526acce3ef55d51b1998432a0c7f41ce6c35c8' 'b330c0f42592322ad2131079ca554a13a364007182dded8c556198caff2c9ec642acf5bb7dfecb05de5a3d89bffec6588b6d05c8c7c5c771a46df3d296deed28') _homedir="/var/lib/gitlab" package() { cd "gitaly-v${pkgver}-"* make PREFIX=/usr DESTDIR=${pkgdir} install mkdir -p "${pkgdir}/etc/${pkgname}" sed \ -e "s|^socket_path =.*|socket_path = \"${_homedir}/sockets/gitlab-gitaly.socket\"|" \ -e "s|^path =.*|path = \"${_homedir}/repositories\"|" \ config.toml.example > "${pkgdir}/etc/${pkgname}/config.toml" install -Dm644 config.toml.example "${pkgdir}/usr/share/${pkgname}/config.toml.example" install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm0644 "${srcdir}/gitlab-gitaly.service" "${pkgdir}/usr/lib/systemd/system/gitlab-gitaly.service" } # vim:set ts=2 sw=2 et: