39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Maintainer: Konstantin Stepanov <me@kstep.me>
|
|
pkgname=systemd-cron
|
|
pkgver=0.9.0
|
|
pkgrel=1
|
|
pkgdesc="systemd generator to generate timers/services from crontab and anacrontab files"
|
|
url="https://github.com/systemd-cron/systemd-cron-next"
|
|
arch=('any')
|
|
license=('GPL3')
|
|
depends=('systemd')
|
|
makedepends=('rust')
|
|
provides=('cron' 'anacron')
|
|
replaces=('cron' 'anacron')
|
|
source=('https://github.com/systemd-cron/systemd-crontab-generator/archive/master.zip')
|
|
md5sums=('SKIP')
|
|
|
|
prepare() {
|
|
RUSTVER=$(rustc --version | awk '{ print $2 }')
|
|
if [[ -n "$RUSTVER" && ("$RUSTVER" < "1.3.0") ]]; then
|
|
error "Rust nightly is required to build this package."
|
|
error "Possible ways to get Rust nightly:"
|
|
error " - AUR package 'rust-nightly-bin',"
|
|
error " - AUR package 'multirust', and then choose"
|
|
error " nightly channel with 'multirust default nightly' command,"
|
|
error " - from official site: http://www.rust-lang.org/install.html."
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/systemd-cron-next-master"
|
|
./configure --prefix="$pkgdir/usr"
|
|
make build
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/systemd-cron-next-master"
|
|
make install
|
|
}
|