void-packages/srcpkgs/gitolite/template
Đoàn Trần Công Danh af2e58c9e5 gitolite: simplify template, add VERSION
* xbps-src knows how to extract this tarball
* Mimic gitolite's install (provide VERSION file), otherwise, we'll see
  this message:

	hello user, this is gitolite@host running gitolite3 (unknown) on git 2.26.2

* I tempted to remove /usr/bin/gitolite and add it into gitolite's
  .profile, but I don't want to break other people's setup.
2020-05-29 07:54:19 +07:00

29 lines
820 B
Bash

# Template file for 'gitolite'
pkgname=gitolite
version=3.6.11
revision=2
archs=noarch
depends="git perl"
short_desc="Access control layer on top of git"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-2.0-only"
homepage="http://gitolite.com/gitolite"
distfiles="https://github.com/sitaramc/gitolite/archive/v${version}.tar.gz"
checksum=2166a61b14de19e605b14f4a13a070fbfd5ecd247b6fd725108f111198a2c121
system_accounts="gitolite"
gitolite_homedir="/var/lib/gitolite"
gitolite_shell="/bin/sh"
make_dirs="/var/lib/gitolite 0750 gitolite gitolite"
do_check() {
: gitolite test suite delete stuff
}
do_install() {
vmkdir usr/lib/gitolite
vmkdir usr/bin
vcopy src/* usr/lib/gitolite
echo "v$version" >"$DESTDIR/usr/lib/gitolite/VERSION"
ln -s /usr/lib/gitolite/gitolite ${DESTDIR}/usr/bin/gitolite
}