void-packages/srcpkgs/gitolite/template

28 lines
842 B
Bash

# Template file for 'gitolite'
pkgname=gitolite
version=3.6.8
revision=1
noarch=yes
build_style=fetch
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>${pkgname}-${version}.tar.gz"
checksum=4c5d66964b2881221915f1751ae5e64a89266f8943abf5efd457672374f03edf
system_accounts="gitolite"
gitolite_homedir="/var/lib/gitolite"
gitolite_shell="/bin/sh"
make_dirs="${gitolite_homedir} 0750 ${system_accounts} ${system_accounts}"
do_install() {
tar -xzvf ${pkgname}-${version}.tar.gz
vmkdir usr/lib/gitolite
vmkdir usr/bin
vcopy ${pkgname}-${version}/src/* usr/lib/gitolite
ln -s /usr/lib/gitolite/gitolite ${DESTDIR}/usr/bin/gitolite
}