# Maintainer: Dwayne Bent pkgname=systemd-cron pkgver=2.1.2 pkgrel=1 pkgdesc='systemd units to run cron scripts' arch=('x86_64') url='https://github.com/systemd-cron/systemd-cron' license=('MIT') depends=('systemd>=251' 'openssl') optdepends=('smtp-forwarder: sending emails') provides=('cron') conflicts=('cron') options=('debug') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/systemd-cron/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz" 'sysusers.conf') install=${pkgname}.install sha256sums=('75b9b6bb78ec6c4779d339ba026bab0a6fb5fd15efc6fb6181d4931a59806722' '9260221879cca05d4c82cd12deb88759c8d9148e106f4b9891700849cef5c41b') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --libexecdir=/usr/lib \ --enable-minutely --enable-quarterly --enable-semi_annually make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -d "${pkgdir}"/etc/cron.{boot,minutely,hourly,daily,weekly,monthly,quarterly,semi-annually,yearly} install -dm1730 "${pkgdir}/var/spool/cron" cat "${srcdir}/sysusers.conf" >> "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf" }