[arch-commits] Commit in (brook brook/repos brook/trunk brook/trunk/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Nov 27 04:49:18 UTC 2017


    Date: Monday, November 27, 2017 @ 04:49:17
  Author: felixonmars
Revision: 269116

addpkg: brook 20171113-1

Added:
  brook/
  brook/repos/
  brook/trunk/
  brook/trunk/PKGBUILD

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

Added: brook/trunk/PKGBUILD
===================================================================
--- brook/trunk/PKGBUILD	                        (rev 0)
+++ brook/trunk/PKGBUILD	2017-11-27 04:49:17 UTC (rev 269116)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Kasei Wang <cnsdwpc at gmail.com>
+
+pkgname=brook
+pkgver=20171113
+pkgrel=1
+pkgdesc="A cross-platform proxy/vpn software"
+arch=('x86_64')
+url="https://github.com/txthinking/brook"
+license=('GPL')
+depends=('glibc')
+makedepends=('go-pie' 'git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/txthinking/brook/archive/v$pkgver.tar.gz")
+sha512sums=('b0492bfdc241aa62533d7be90ad5777b77bab705df2d5a9fbad018dce6b093a7dfb0181144ed98beb9550068531ab2e5b23efd2e941d5b30755edab1156fd186')
+
+prepare() {
+  cd brook-$pkgver
+
+  mkdir build
+  mkdir -p .gopath/src/github.com/txthinking
+  ln -sf "$PWD" .gopath/src/github.com/txthinking/brook
+  export GOPATH="$PWD/.gopath"
+
+  go get github.com/mdp/qrterminal github.com/patrickmn/go-cache github.com/txthinking/ant \
+         github.com/txthinking/pac/blackwhite github.com/txthinking/socks5 golang.org/x/net/proxy
+}
+
+build() {
+  cd brook-$pkgver
+  go build -o build/brook
+}
+
+package() {
+  cd brook-$pkgver
+  install -Dm755 build/brook "$pkgdir"/usr/bin/brook
+}


Property changes on: brook/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list