summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStefan Seemayer2015-07-06 10:11:55 +0200
committerStefan Seemayer2015-07-06 10:11:55 +0200
commit2550d07975737b3c21f3a5f8c88b816c23582c5e (patch)
tree07e9d1e8641dfe10c59d36c5cf5fb8b031c2f3c7 /PKGBUILD
downloadaur-sshgrid-git.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a435806418b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Stefan Seemayer <mail@semicolonsoftware.de>
+pkgname=sshgrid-git
+pkgver=20110606
+pkgrel=1
+pkgdesc="Poor-man's grid computing via SSH"
+arch=(any)
+url="https://github.com/sseemayer/SSHGrid"
+license=('GPL')
+groups=()
+depends=(perl openssh)
+makedepends=('git')
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+source=()
+noextract=()
+md5sums=()
+
+_gitroot="git://github.com/sseemayer/SSHGrid.git"
+_gitname="sshgrid-gitrepo"
+
+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 make..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname-build"
+
+ #
+ # BUILD HERE
+ #
+
+ perl Build.PL installdirs=vendor destdir="$pkgdir/"
+ perl Build
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ perl Build install
+}