45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# Template file for 'PopCorn'
|
|
pkgname=PopCorn
|
|
version=0.2.1
|
|
revision=2
|
|
build_style=go
|
|
go_import_path="github.com/the-maldridge/popcorn"
|
|
go_package="${go_import_path}/cmd/popcorn ${go_import_path}/cmd/popcornctl ${go_import_path}/cmd/statrepo"
|
|
hostmakedepends="dep"
|
|
depends="snooze"
|
|
short_desc="Package statistics system"
|
|
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
|
|
license="MIT"
|
|
homepage="https://github.com/the-maldridge/PopCorn"
|
|
distfiles="https://github.com/the-maldridge/PopCorn/archive/v${version}.tar.gz"
|
|
checksum=9ce2ade5ebae5bb31443423b41ab5d6355a2ac3d65cba1d36c3a5616f323a4a9
|
|
|
|
system_accounts="_popcorn"
|
|
_popcorn_homedir="/var/lib/popcorn"
|
|
make_dirs="/var/lib/popcorn 0755 _popcorn _popcorn
|
|
/etc/popcorn 0755 _popcorn _popcorn"
|
|
conf_files="/etc/sv/popcorn/conf"
|
|
|
|
pre_build() {
|
|
cd $GOSRCPATH
|
|
dep ensure
|
|
cd $wrksrc
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsv popcorn
|
|
vsv statrepo
|
|
}
|
|
|
|
PopCorn-Server_package() {
|
|
short_desc+=" - Server"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
conf_files="/etc/sv/statrepo/conf"
|
|
pkg_install() {
|
|
vmove usr/bin/statrepo
|
|
vmove usr/bin/popcornctl
|
|
|
|
vmove etc/sv/statrepo
|
|
}
|
|
}
|