summaryrefslogtreecommitdiff
path: root/pcr/mycron-git/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/mycron-git/PKGBUILD')
-rw-r--r--pcr/mycron-git/PKGBUILD47
1 files changed, 26 insertions, 21 deletions
diff --git a/pcr/mycron-git/PKGBUILD b/pcr/mycron-git/PKGBUILD
index d9eb795b6..19fbd7bd5 100644
--- a/pcr/mycron-git/PKGBUILD
+++ b/pcr/mycron-git/PKGBUILD
@@ -1,14 +1,14 @@
-# Contributor (Arch) : Dirk Sohler <spam@0x7be.de>
-# Contributor (Arch) : Dirk Sohler <spam@0x7be.de>
-# Maintainer (Parabola): Aurélien DESBRIÈRES <aurelien@hackers.camp>
+# Maintainer : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+# Contributor: Dirk Sohler <spam@0x7be.de>
+# Contributor: Dirk Sohler <spam@0x7be.de>
pkgname=mycron-git
_gitname=mycron
-pkgver=2.0.2
+pkgver=3.0
pkgrel=2
-pkgdesc='A standards compliant and convenient crontab management system.'
+pkgdesc='A standards compliant and convenient cron service.'
-url='http://dev.0x7be.de/mycron.html'
+url='https://dev.0x7be.de/mycron.html'
arch=('any')
license=('GPL')
@@ -19,25 +19,30 @@ install=mycron.install
branch='master'
source=("git://github.com/dsohler/mycron.git#branch=$branch"
- 'mycron.install'
+ 'mycron.install'
'mycron.1'
- 'mycron.5')
+ 'mycron.conf.5'
+ 'mycron.crontab.5'
+ 'mycron@.service')
+
pkgver() {
- cd "$srcdir/$_gitname"
- echo $(sed -n "s/^progversion='\(.*\)'/\1/p" mycron.py)
+ cd "$srcdir/$_gitname"
+ echo $(sed -n "s/^progversion = '\(.*\)'/\1/p" mycron.py)
}
package() {
- cd "$srcdir/$_gitname"
- _DOCPATH="usr/share/doc/mycron"
- _MANPATH="usr/share/man"
- install -Dm 755 mycron.py $pkgdir/usr/bin/mycron
- install -Dm 644 example-config.cfg $pkgdir/$_DOCPATH/example-config.cfg
- install -Dm 644 example.crontab $pkgdir/$_DOCPATH/example.crontab
- install -Dm 644 crontab.vim $pkgdir/$_DOCPATH/crontab.vim
- install -Dm 644 ../mycron.1 $pkgdir/$_MANPATH/man1/mycron.1
- install -Dm 644 ../mycron.5 $pkgdir/$_MANPATH/man5/mycron.5
- gzip $pkgdir/$_MANPATH/man1/mycron.1
- gzip $pkgdir/$_MANPATH/man5/mycron.5
+ cd "$srcdir/$_gitname"
+ _DOCPATH="usr/share/doc/mycron"
+ _MANPATH="usr/share/man"
+ _SYSTEMD="usr/lib/systemd/system"
+ install -Dm 755 mycron.py $pkgdir/usr/bin/mycron
+ install -Dm 644 crontab.vim $pkgdir/$_DOCPATH/crontab.vim
+ install -Dm 644 ../mycron.1 $pkgdir/$_MANPATH/man1/mycron.1
+ install -Dm 644 ../mycron.conf.5 $pkgdir/$_MANPATH/man5/mycron.conf.5
+ install -Dm 644 ../mycron.crontab.5 $pkgdir/$_MANPATH/man5/mycron.crontab.5
+ install -Dm 644 ../mycron@.service $pkgdir/$_SYSTEMD/mycron@.service
+ gzip $pkgdir/$_MANPATH/man1/mycron.1
+ gzip $pkgdir/$_MANPATH/man5/mycron.conf.5
+ gzip $pkgdir/$_MANPATH/man5/mycron.crontab.5
}