[arch-commits] Commit in baidupcs-go/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Jul 4 17:39:09 UTC 2019


    Date: Thursday, July 4, 2019 @ 17:39:09
  Author: felixonmars
Revision: 487444

archrelease: copy trunk to community-x86_64

Added:
  baidupcs-go/repos/community-x86_64/
  baidupcs-go/repos/community-x86_64/PKGBUILD
    (from rev 487443, baidupcs-go/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: baidupcs-go/repos/community-x86_64/PKGBUILD (from rev 487443, baidupcs-go/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-07-04 17:39:09 UTC (rev 487444)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=baidupcs-go
+pkgver=3.5.6
+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=('fcec0e07b984dd83e554c98866db771737284c3ce1321e4fa05137e5d7ae59f5d4d1280024984dab3a5aa0a097312d0454c6d0d16d97c823d97342c44c8ca31e')
+
+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 -o baidupcs-go
+}
+
+package() {
+  cd BaiduPCS-Go-$pkgver
+  install -Dm755 baidupcs-go "$pkgdir"/usr/bin/baidupcs
+}



More information about the arch-commits mailing list