summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrey Christoforo2015-06-20 19:53:40 +0200
committerGrey Christoforo2015-06-20 19:53:40 +0200
commitbda29b0573e1d4883646098f4991f2fa7ff56941 (patch)
treead3d9c0bc6de894ba898714af89685c85c01d32c
downloadaur-bda29b0573e1d4883646098f4991f2fa7ff56941.tar.gz
Initial import
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD39
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ad8c8ba9d77
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = git-lfs-test-server-git
+ pkgdesc = Standalone Git LFS server
+ pkgver = v0.2.1.r1.g90efc5f
+ pkgrel = 1
+ url = https://github.com/github/lfs-test-server
+ arch = x86_64
+ arch = i686
+ license = custom
+ makedepends = mercurial
+ makedepends = git
+ makedepends = go
+ provides = git-lfs-test-server
+ conflicts = git-lfs-test-server
+ conflicts = git-lfs-test-server-bin
+ options = !strip
+ options = !emptydirs
+ source = git://github.com/github/lfs-test-server
+ md5sums = SKIP
+
+pkgname = git-lfs-test-server-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4eee775974f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+pkgname=git-lfs-test-server-git
+pkgver=v0.2.1.r1.g90efc5f
+pkgrel=1
+pkgdesc="Standalone Git LFS server"
+url="https://github.com/github/lfs-test-server"
+license=('custom')
+arch=('x86_64' 'i686')
+makedepends=('mercurial' 'git' 'go')
+conflicts=('git-lfs-test-server' 'git-lfs-test-server-bin')
+provides=('git-lfs-test-server')
+md5sums=('SKIP')
+options=('!strip' '!emptydirs')
+source=('git://github.com/github/lfs-test-server')
+
+pkgver() {
+ cd lfs-test-server
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ mkdir -p "$srcdir/bin"
+ GOBIN="$srcdir/bin" GOPATH="$srcdir" go get -v -x -fix ./lfs-test-server/...
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/bin"
+ install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin"
+
+ mkdir -p "$pkgdir/usr/lib/go"
+ cp -Rv --preserve=timestamps "$srcdir/"{src,pkg} "$pkgdir/usr/lib/go"
+
+ # Package license (if available)
+ for f in LICENSE COPYING LICENSE.* COPYING.*; do
+ if [ -e "$srcdir/src/$_gourl/$f" ]; then
+ install -Dm644 "$srcdir/src/$_gourl/$f" \
+ "$pkgdir/usr/share/licenses/$pkgname/$f"
+ fi
+ done
+}