summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: efd07f608f8233e2af15c30502095974cfff7d9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Konstantin Stepanov <me@kstep.me>
pkgname=systemd-cron-next
pkgver=1.0.2
_gitver=1.0.2
pkgrel=2
pkgdesc="systemd generator to generate timers/services from crontab and anacrontab files"
url="https://github.com/systemd-cron/systemd-cron-next"
arch=('i686' 'x86_64')
license=('MIT')
depends=('systemd>=217' 'run-parts')
optdepends=('smtp-forwarder: sending emails')
makedepends=('rust>=1.4.0' 'cargo>=0.6.0')
provides=('cron' 'anacron')
conflicts=('cron' 'anacron')
replaces=('cron' 'anacron')
source=("https://github.com/systemd-cron/systemd-crontab-generator/archive/v${_gitver}.zip")
md5sums=('975aa9d302ea5b2785fec52dff1b8eac')

build() {
    cd "${srcdir}/${pkgname}-${_gitver}"
    if which multirust; then
        multirust override stable
    else
        if which rustup; then
            rustup override add stable
        fi
    fi
    ./configure --prefix="/usr" --confdir="/etc"
    DESTDIR="${pkgdir}" make build
}

package() {
    cd "${srcdir}/${pkgname}-${_gitver}"
    DESTDIR="${pkgdir}" make install
    install -d -m 775 ${pkgdir}/var/spool/cron
}