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

Morten Linderud foxboron at archlinux.org
Fri Aug 3 20:24:32 UTC 2018


    Date: Friday, August 3, 2018 @ 20:24:31
  Author: foxboron
Revision: 367629

upgpkg: git-lfs 2.5.1-1

Updated to 2.5.1

Modified:
  git-lfs/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-03 20:11:45 UTC (rev 367628)
+++ PKGBUILD	2018-08-03 20:24:31 UTC (rev 367629)
@@ -1,41 +1,40 @@
 # Maintainer: Morten Linderud <foxboron at archlinux.org>
 
 pkgname=git-lfs
-pkgver=2.4.2
+pkgver=2.5.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' 'glide')
+makedepends=('go-pie' 'ruby-ronn')
 depends=('git')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/git-lfs/git-lfs/archive/v${pkgver}.tar.gz")
-sha256sums=('130a552a27c8f324ac0548baf9db0519c4ae96c26a85f926c07ebe0f15a69fc2')
+sha256sums=('85c3148c7cbd9216e356b9317bc726ff8d982b37654ec1b26c537238ba9bfd8e')
 
 prepare(){
-  export GOPATH="${srcdir}"
-  mkdir -p src
-  mv "${pkgname}-${pkgver}"/vendor/* src/
   mkdir -p src/github.com/git-lfs
   ln -rTsf "${pkgname}-${pkgver}" src/github.com/git-lfs/git-lfs
-
-  cd "${pkgname}-${pkgver}"
-  glide install
 }
 
 build(){
-  cd "${pkgname}-${pkgver}"
-  export GOPATH="${srcdir}"
-  go build -o "${pkgname}" .
-  ./script/man
+  export GOPATH="${srcdir}" 
+  cd "src/github.com/git-lfs/git-lfs"
+  go install -gcflags "all=-trimpath=${GOPATH}" -asmflags "all=-trimpath=${GOPATH}" ./...
+  make man
 }
 
+check(){
+  export GOPATH="${srcdir}" 
+  cd "src/github.com/git-lfs/git-lfs"
+  go test ./...
+}
+
 package() {
+  install -Dm755 ./bin/$pkgname "$pkgdir"/usr/bin/$pkgname
+
   cd "${pkgname}-${pkgver}"
-  install -Dm755 $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
-  install -d "$pkgdir"/usr/share/man/man5
-  install -Dm644 man/*.5 "$pkgdir"/usr/share/man/man5
+  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