Commits

Josh VanderLinden committed 968dd83

Initial work on the package

Comments (0)

Files changed (1)

+# Maintainer: Josh VanderLinden <arch@cloudlery.com>
+pkgname=gitlab-git
+pkgver=20121121
+pkgrel=1
+pkgdesc="Fast, secure and stable solution based on Rails & Gitolite."
+arch=('any')
+url="https://bitbucket.org/instarch/gitlab-git/"
+license=('MIT')
+depends=('ruby' 'mysql' 'git' 'gitolite' 'redis')
+makedepends=('git')
+provides=('gitlab')
+source=()
+md5sums=() #generate with 'makepkg -g'
+
+_gitroot=https://github.com/gitlabhq/gitlabhq.git
+_gitname=gitlab
+
+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"
+  cd "$srcdir/$_gitname-build"
+
+  pwd
+}
+
+package() {
+  cd "$srcdir/$_gitname-build"
+
+  install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: