diff --git a/.gitignore b/.gitignore index ebf1dde..2f7896d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -pkg/ target/ diff --git a/pkg/.gitignore b/pkg/.gitignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/pkg/.gitignore @@ -0,0 +1 @@ +* diff --git a/pkg/PKGBUILD b/pkg/PKGBUILD new file mode 100644 index 0000000..dade3f5 --- /dev/null +++ b/pkg/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Konstantin Stepanov +pkgname=systemd-crontab-generator +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-crontab-generator" +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') + +build() { + cd "$srcdir/systemd-crontab-generator-master" + make release +} + +package() { + cd "$srcdir/systemd-crontab-generator-master" + make install PREFIX="$pkgdir/usr" +}