31 lines
918 B
Bash
31 lines
918 B
Bash
|
# Template file for 'ntfy'
|
||
|
pkgname=ntfy
|
||
|
version=2.0.0
|
||
|
revision=1
|
||
|
build_style=go
|
||
|
go_import_path="heckel.io/ntfy"
|
||
|
go_ldflags="-X main.version=${version} -X main.commit=v${version}
|
||
|
-X main.date=${SOURCE_DATE_EPOCH}"
|
||
|
hostmakedepends="nodejs"
|
||
|
short_desc="Send push notifications to your phone or desktop using PUT/POST"
|
||
|
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
||
|
license="Apache-2.0,GPL-2.0-only"
|
||
|
homepage="https://ntfy.sh"
|
||
|
distfiles="https://github.com/binwiederhier/ntfy/archive/refs/tags/v${version}.tar.gz"
|
||
|
checksum=08bbb642efcc476e45c7168c2b475c3ad83e5bf2fb901c79fd2c6b76f3326a4a
|
||
|
system_accounts="_ntfy"
|
||
|
make_dirs="/var/lib/ntfy 0700 _ntfy _ntfy"
|
||
|
_ntfy_homedir="/var/lib/ntfy"
|
||
|
conf_files="/etc/ntfy/server.yml"
|
||
|
|
||
|
pre_build() {
|
||
|
make web
|
||
|
mkdir -p dist/ntfy_linux_server server/docs
|
||
|
touch server/docs/index.html server/site/app.html
|
||
|
}
|
||
|
|
||
|
post_install() {
|
||
|
vsv ntfy-server
|
||
|
vinstall server/server.yml 644 etc/ntfy
|
||
|
}
|