void-packages/srcpkgs/PopCorn/template

53 lines
1.2 KiB
Bash
Raw Normal View History

2018-05-06 22:47:55 +02:00
# Template file for 'PopCorn'
pkgname=PopCorn
2018-05-20 08:35:58 +02:00
version=0.3
revision=1
2018-05-06 22:47:55 +02:00
build_style=go
go_import_path="github.com/the-maldridge/popcorn"
2018-05-20 08:35:58 +02:00
go_package="${go_import_path}/cmd/popcorn
${go_import_path}/cmd/popcornctl
${go_import_path}/cmd/statrepo
${go_import_path}/cmd/pqueryd"
2018-05-06 22:47:55 +02:00
hostmakedepends="dep"
2018-05-09 04:31:19 +02:00
depends="snooze"
2018-05-06 22:47:55 +02:00
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"
2018-05-20 08:35:58 +02:00
checksum=5e61970c3ba5fd83f6b5b86c30264213461f4a5af8aacd2ba1757333ece05260
2018-05-06 22:47:55 +02:00
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
2018-05-20 08:35:58 +02:00
vsv pqueryd
2018-05-06 22:47:55 +02:00
}
PopCorn-Server_package() {
short_desc+=" - Server"
depends="${sourcepkg}>=${version}_${revision}"
2018-05-20 08:35:58 +02:00
conf_files="/etc/sv/statrepo/conf
/etc/sv/pqueryd/conf"
2018-05-06 22:47:55 +02:00
pkg_install() {
vmove usr/bin/statrepo
vmove usr/bin/popcornctl
2018-05-20 08:35:58 +02:00
vmove usr/bin/pqueryd
2018-05-06 22:47:55 +02:00
vmove etc/sv/statrepo
2018-05-20 08:35:58 +02:00
vmove etc/sv/pqueryd
2018-05-06 22:47:55 +02:00
}
}