# Template file for 'jenkins'
pkgname=jenkins
version=2.541.3
revision=1
make_dirs="/var/lib/jenkins 0755 jenkins jenkins"
depends="virtual?java-runtime"
short_desc="Open source automation server"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://jenkins.io/"
distfiles="https://mirrors.jenkins.io/war-stable/${version}/jenkins.war"
checksum=0000addfa8722963164137a4e0e60abc227d9d60710c4deb19481f9a751cf512
skip_extraction="jenkins.war"
# Create 'jenkins' user
system_accounts="jenkins"
jenkins_homedir="/var/lib/jenkins"
jenkins_descr="Jenkins server user"

do_install() {
	vinstall ${XBPS_SRCDISTDIR}/${pkgname}-${version}/jenkins.war 644 opt/jenkins
	vsv jenkins
	vlicense ${FILESDIR}/LICENSE
}
