52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
# Template file for 'PopCorn'
|
|
pkgname=PopCorn
|
|
version=0.3
|
|
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
|
|
${go_import_path}/cmd/pqueryd"
|
|
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=5e61970c3ba5fd83f6b5b86c30264213461f4a5af8aacd2ba1757333ece05260
|
|
|
|
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
|
|
vsv pqueryd
|
|
}
|
|
|
|
PopCorn-Server_package() {
|
|
short_desc+=" - Server"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
conf_files="/etc/sv/statrepo/conf
|
|
/etc/sv/pqueryd/conf"
|
|
pkg_install() {
|
|
vmove usr/bin/statrepo
|
|
vmove usr/bin/popcornctl
|
|
vmove usr/bin/pqueryd
|
|
|
|
vmove etc/sv/statrepo
|
|
vmove etc/sv/pqueryd
|
|
}
|
|
}
|