vp-build/srcpkgs/uptimed/template

26 lines
782 B
Bash

# Template file for 'uptimed'
pkgname=uptimed
version=0.4.1
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake libtool"
short_desc="Daemon that records system uptimes"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-2.0-only"
homepage="https://github.com/rpodgorny/uptimed"
changelog="https://raw.githubusercontent.com/rpodgorny/uptimed/master/ChangeLog"
distfiles="${homepage}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=01b16519bbdd3b99c97a09e910b74e4dceb5eea74e3ab20b6c90c76c8cb55905
conf_files="/etc/uptimed.conf"
make_dirs="/var/spool/uptimed 0755 root root"
pre_configure() {
./autogen.sh
}
post_install() {
mv ${DESTDIR}/etc/uptimed.conf-dist ${DESTDIR}/etc/uptimed.conf
vsv uptimed
}