summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYesDay2018-02-15 19:27:52 +0000
committerYesDay2018-02-15 19:27:52 +0000
commit0c7f436cef6bc66138ea066d007db043a78797d3 (patch)
tree3526cd0c08f489e549e4148643ee3b28e357f8e7
downloadaur-0c7f436cef6bc66138ea066d007db043a78797d3.tar.gz
An open source Git extension for versioning large files on ARMv7, ARMv6 and ARMv8 (64-bit)
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD38
-rw-r--r--git-lfs.install3
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c988ea8b5e0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = git-lfs-arm
+ pkgdesc = An open source Git extension for versioning large files on ARMv7, ARMv6 and ARMv8 (64-bit)
+ pkgver = 2.3.4
+ pkgrel = 1
+ url = https://git-lfs.github.com/
+ install = git-lfs.install
+ arch = armv6h
+ arch = armv7h
+ arch = aarch64
+ license = MIT
+ makedepends = go
+ makedepends = ruby-ronn
+ depends = git>=1.8.5
+ provides = git-lfs
+ provides = git-lfs-bin
+ conflicts = git-lfs
+ conflicts = git-lfs-bin
+ source = git-lfs-arm-2.3.4.tar.gz::https://github.com/git-lfs/git-lfs-arm/archive/v2.3.4.tar.gz
+ sha1sums = 145d49542e9dfdec91a2bb0c52c037c67551a447
+
+pkgname = git-lfs-arm
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..28acbac0fd6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: YesDay <yesdayuk[you know]gmail[you know]com>
+pkgname=git-lfs-arm
+pkgver=2.3.4
+pkgrel=1
+pkgdesc="An open source Git extension for versioning large files on ARMv7, ARMv6 and ARMv8 (64-bit)"
+url="https://git-lfs.github.com/"
+arch=('armv6h' 'armv7h' 'aarch64')
+_vendor="github.com/git-lfs/$pkgname"
+license=('MIT')
+makedepends=('go' 'ruby-ronn')
+depends=('git>=1.8.5')
+provides=('git-lfs' 'git-lfs-bin')
+conflicts=('git-lfs' 'git-lfs-bin')
+install=git-lfs.install
+source=($pkgname-$pkgver.tar.gz::https://$_vendor/archive/v$pkgver.tar.gz)
+sha1sums=('145d49542e9dfdec91a2bb0c52c037c67551a447')
+
+_vendorpath="gopath/src/$_vendor"
+
+prepare() {
+ mkdir -p $(dirname gopath/src/$_vendor)
+ ln -sf "$srcdir"/$pkgname-$pkgver gopath/src/$_vendor
+}
+
+build() {
+ export GOPATH="$srcdir"/gopath
+ cd $_vendorpath
+ ./script/bootstrap
+ ./script/man
+}
+
+package() {
+ cd $_vendorpath
+ install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
+ install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -d "$pkgdir"/usr/share/man/man1
+ install -Dm644 man/*.1 "$pkgdir"/usr/share/man/man1
+}
diff --git a/git-lfs.install b/git-lfs.install
new file mode 100644
index 00000000000..34c7a49d237
--- /dev/null
+++ b/git-lfs.install
@@ -0,0 +1,3 @@
+post_install() {
+ git lfs install
+}