From bf44c9909e79acc33fab15e61f30c2f38279b895 Mon Sep 17 00:00:00 2001 From: aurelien Date: Fri, 16 Nov 2012 10:36:14 +0100 Subject: + lessc python2-flask-lesscss perl-latex-encode mycron-git (lot of permissions trouble with mycron-git(report on irc # + comment)) --- pcr/mycron-git/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pcr/mycron-git/PKGBUILD (limited to 'pcr/mycron-git/PKGBUILD') diff --git a/pcr/mycron-git/PKGBUILD b/pcr/mycron-git/PKGBUILD new file mode 100644 index 000000000..16022bc5f --- /dev/null +++ b/pcr/mycron-git/PKGBUILD @@ -0,0 +1,49 @@ +# Contributor: Dirk Sohler +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres + +pkgname=mycron-git +pkgver=20121116 +pkgrel=1 +pkgdesc='A standards compliant and convenient crontab management system.' + +url='https://dev.0x7be.de/mycron' +arch=('any') +license=('GPL') + +depends=('python>=3.0') +makedepends=('git') + +install=mycron.install + +source=('mycron.install') +sha256sums=('a5406ae03412d3a1aaf6aadb902b4dd40bb6eadb21aa2ffb7c21ae95d656f598') + +_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" +} + +package() { + cd "$srcdir/$_gitname-build" + 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 +} -- cgit v1.2.3