[arch-commits] Commit in baidupcs-go/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sat May 9 14:34:47 UTC 2020


    Date: Saturday, May 9, 2020 @ 14:34:46
  Author: foxboron
Revision: 625970

upgpkg: baidupcs-go 3.6.2-2

Removed go get usage and updated to current guidelines

Modified:
  baidupcs-go/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-09 14:33:24 UTC (rev 625969)
+++ PKGBUILD	2020-05-09 14:34:46 UTC (rev 625970)
@@ -2,32 +2,25 @@
 
 pkgname=baidupcs-go
 pkgver=3.6.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Terminal utility for Baidu Network Disk"
 arch=('x86_64')
 url="https://github.com/iikira/BaiduPCS-Go"
 license=('Apache')
 depends=('glibc')
-makedepends=('go-pie' 'git')
+makedepends=('go' 'git')
 conflicts=("baidupcs")
 provides=("baidupcs")
 source=("$pkgname-$pkgver.tar.gz::https://github.com/iikira/BaiduPCS-Go/archive/v$pkgver.tar.gz")
 sha512sums=('e7248521cade634aa41224c88b8dd07cac3a84d0f262c369447c4c4872e52c9431dcee38b42cf6360c13a64cc1b6bce1cc4199de54602b4e8bac95b37a68688c')
 
-prepare() {
-  cd BaiduPCS-Go-$pkgver
-
-  mkdir -p .gopath/src/github.com/iikira
-  ln -sf "$PWD" .gopath/src/github.com/iikira/BaiduPCS-Go
-  export GOPATH="$PWD/.gopath:/usr/share/gocode"
-
-  go get github.com/iikira/args github.com/olekukonko/tablewriter github.com/peterh/liner \
-         github.com/urfave/cli
-}
-
 build() {
   cd BaiduPCS-Go-$pkgver
-  go build -ldflags "-extldflags ${LDFLAGS}" -o baidupcs-go
+  export GOFLAGS="-buildmode=pie -trimpath"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  go build -o baidupcs-go
 }
 
 package() {



More information about the arch-commits mailing list