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/PKGBUILD56
1 files changed, 25 insertions, 31 deletions
diff --git a/pcr/mycron-git/PKGBUILD b/pcr/mycron-git/PKGBUILD
index c80b79b1d..d9eb795b6 100644
--- a/pcr/mycron-git/PKGBUILD
+++ b/pcr/mycron-git/PKGBUILD
@@ -1,12 +1,14 @@
-# Contributor (Arch): Dirk Sohler <spam@0x7be.de>
-# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
+# 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
-pkgver=20121116
-pkgrel=1
+_gitname=mycron
+pkgver=2.0.2
+pkgrel=2
pkgdesc='A standards compliant and convenient crontab management system.'
-url='https://dev.0x7be.de/mycron'
+url='http://dev.0x7be.de/mycron.html'
arch=('any')
license=('GPL')
@@ -15,35 +17,27 @@ makedepends=('git')
install=mycron.install
-source=('mycron.install')
-sha256sums=('a5406ae03412d3a1aaf6aadb902b4dd40bb6eadb21aa2ffb7c21ae95d656f598')
+branch='master'
+source=("git://github.com/dsohler/mycron.git#branch=$branch"
+ 'mycron.install'
+ 'mycron.1'
+ 'mycron.5')
-_gitroot='https://github.com/dsohler/mycron'
-_gitname='master'
-
-build() {
- cd $srcdir
- msg "Connecting to GIT server...."
-
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone "$_gitroot" "$_gitname"
- fi
-
- msg "GIT checkout done or server timeout"
- msg "Starting build..."
-
- rm -rf "$srcdir/$_gitname-build"
- git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+pkgver() {
+ cd "$srcdir/$_gitname"
+ echo $(sed -n "s/^progversion='\(.*\)'/\1/p" mycron.py)
}
package() {
- cd "$srcdir/$_gitname-build"
+ 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/usr/share/doc/mycron/example-config.cfg
- install -Dm 644 example.crontab \
- $pkgdir/usr/share/doc/mycron/example.crontab
+ 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
}