[arch-commits] Commit in git-lfs/repos/community-x86_64 (PKGBUILD PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Fri Aug 3 20:24:42 UTC 2018
Date: Friday, August 3, 2018 @ 20:24:41
Author: foxboron
Revision: 367630
archrelease: copy trunk to community-x86_64
Added:
git-lfs/repos/community-x86_64/PKGBUILD
(from rev 367629, git-lfs/trunk/PKGBUILD)
Deleted:
git-lfs/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 81 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 40 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-03 20:24:31 UTC (rev 367629)
+++ PKGBUILD 2018-08-03 20:24:41 UTC (rev 367630)
@@ -1,41 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-
-pkgname=git-lfs
-pkgver=2.4.2
-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')
-depends=('git')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/git-lfs/git-lfs/archive/v${pkgver}.tar.gz")
-sha256sums=('130a552a27c8f324ac0548baf9db0519c4ae96c26a85f926c07ebe0f15a69fc2')
-
-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
-}
-
-package() {
- 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
-}
Copied: git-lfs/repos/community-x86_64/PKGBUILD (from rev 367629, git-lfs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-08-03 20:24:41 UTC (rev 367630)
@@ -0,0 +1,40 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=git-lfs
+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')
+depends=('git')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/git-lfs/git-lfs/archive/v${pkgver}.tar.gz")
+sha256sums=('85c3148c7cbd9216e356b9317bc726ff8d982b37654ec1b26c537238ba9bfd8e')
+
+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 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 -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