blob: d9eb795b6b814135fc04b122ad3818ed43633757 (
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
37
38
39
40
41
42
43
|
# Contributor (Arch) : Dirk Sohler <spam@0x7be.de>
# Contributor (Arch) : Dirk Sohler <spam@0x7be.de>
# Maintainer (Parabola): Aurélien DESBRIÈRES <aurelien@hackers.camp>
pkgname=mycron-git
_gitname=mycron
pkgver=2.0.2
pkgrel=2
pkgdesc='A standards compliant and convenient crontab management system.'
url='http://dev.0x7be.de/mycron.html'
arch=('any')
license=('GPL')
depends=('python>=3.0')
makedepends=('git')
install=mycron.install
branch='master'
source=("git://github.com/dsohler/mycron.git#branch=$branch"
'mycron.install'
'mycron.1'
'mycron.5')
pkgver() {
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
}
|