[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Jul 4 17:38:51 UTC 2019


    Date: Thursday, July 4, 2019 @ 17:38:51
  Author: felixonmars
Revision: 487443

addpkg: baidupcs-go 3.5.6-1

Added:
  baidupcs-go/
  baidupcs-go/repos/
  baidupcs-go/trunk/
  baidupcs-go/trunk/PKGBUILD

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

Added: baidupcs-go/trunk/PKGBUILD
===================================================================
--- baidupcs-go/trunk/PKGBUILD	                        (rev 0)
+++ baidupcs-go/trunk/PKGBUILD	2019-07-04 17:38:51 UTC (rev 487443)
@@ -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