[arch-commits] Commit in baidupcs-go/repos/community-x86_64 (PKGBUILD PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Sat May 9 14:34:55 UTC 2020
Date: Saturday, May 9, 2020 @ 14:34:54
Author: foxboron
Revision: 625971
archrelease: copy trunk to community-x86_64
Added:
baidupcs-go/repos/community-x86_64/PKGBUILD
(from rev 625970, baidupcs-go/trunk/PKGBUILD)
Deleted:
baidupcs-go/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++----------------------------------
1 file changed, 29 insertions(+), 36 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-09 14:34:46 UTC (rev 625970)
+++ PKGBUILD 2020-05-09 14:34:54 UTC (rev 625971)
@@ -1,36 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=baidupcs-go
-pkgver=3.6.2
-pkgrel=1
-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')
-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
-}
-
-package() {
- cd BaiduPCS-Go-$pkgver
- install -Dm755 baidupcs-go "$pkgdir"/usr/bin/baidupcs
-}
Copied: baidupcs-go/repos/community-x86_64/PKGBUILD (from rev 625970, baidupcs-go/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-05-09 14:34:54 UTC (rev 625971)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=baidupcs-go
+pkgver=3.6.2
+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' 'git')
+conflicts=("baidupcs")
+provides=("baidupcs")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/iikira/BaiduPCS-Go/archive/v$pkgver.tar.gz")
+sha512sums=('e7248521cade634aa41224c88b8dd07cac3a84d0f262c369447c4c4872e52c9431dcee38b42cf6360c13a64cc1b6bce1cc4199de54602b4e8bac95b37a68688c')
+
+build() {
+ cd BaiduPCS-Go-$pkgver
+ export GOFLAGS="-buildmode=pie -trimpath"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ go build -o baidupcs-go
+}
+
+package() {
+ cd BaiduPCS-Go-$pkgver
+ install -Dm755 baidupcs-go "$pkgdir"/usr/bin/baidupcs
+}
More information about the arch-commits
mailing list