[arch-commits] Commit in git-lfs/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Fri Dec 21 20:42:54 UTC 2018


    Date: Friday, December 21, 2018 @ 20:42:54
  Author: foxboron
Revision: 417458

upgpkg: git-lfs 2.6.1-1

Modified:
  git-lfs/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++--------------------
 1 file changed, 17 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-21 19:59:11 UTC (rev 417457)
+++ PKGBUILD	2018-12-21 20:42:54 UTC (rev 417458)
@@ -1,40 +1,37 @@
 # Maintainer: Morten Linderud <foxboron at archlinux.org>
 
 pkgname=git-lfs
-pkgver=2.5.2
-pkgrel=2
+pkgver=2.6.1
+pkgrel=1
 pkgdesc="Git extension for versioning large files"
 arch=('x86_64')
 url="https://git-lfs.github.com"
 license=('MIT')
-makedepends=('go-pie' 'ruby-ronn')
+makedepends=('go-pie' 'ruby-ronn' 'go-tools')
 depends=('git')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/git-lfs/git-lfs/archive/v${pkgver}.tar.gz")
-sha256sums=('0ab21f0f9b6c40acd9748a1669f1023ef38f913d8be83bbf7b7c7d983bd3c4d1')
+source=("git+https://github.com/git-lfs/git-lfs.git#tag=v${pkgver}")
+#validpgpkeys=('4DB92D1D8CEE7E54F06713452D0C9BC12F82B3A1') # brian m. carlson <sandals at crustytoothpaste.net>
+#validpgpkeys=('88ACE9B29196305BA9947552F1BA225C0223B187') # brian m. carlson <sandals at crustytoothpaste.net>
+sha256sums=('SKIP')
 
-prepare(){
-  mkdir -p src/github.com/git-lfs
-  ln -rTsf "${pkgname}-${pkgver}" src/github.com/git-lfs/git-lfs
-}
-
 build(){
-  export GOPATH="${srcdir}" 
-  cd "src/github.com/git-lfs/git-lfs"
-  go generate ./commands
-  go install -gcflags "all=-trimpath=${GOPATH}" -asmflags "all=-trimpath=${GOPATH}" ./...
+  cd "$pkgname"
+  go build \
+    -gcflags "all=-trimpath=${PWD}" \
+    -asmflags "all=-trimpath=${PWD}" \
+    -ldflags "-extldflags ${LDFLAGS}" \
+    .
   make man
 }
 
 check(){
-  export GOPATH="${srcdir}" 
-  cd "src/github.com/git-lfs/git-lfs"
-  go test ./...
+  cd "$pkgname"
+  make test
 }
 
 package() {
-  install -Dm755 ./bin/$pkgname "$pkgdir"/usr/bin/$pkgname
-
-  cd "${pkgname}-${pkgver}"
+  cd "$pkgname"
+  install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
   install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
   install -Dm644 -t "$pkgdir"/usr/share/man/man1 man/*.1 
   install -Dm644 -t "$pkgdir"/usr/share/man/man5 man/*.5 



More information about the arch-commits mailing list