blob: 8f1d1b9aeb29833f1eead2e9b380f26b3fa89748 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: DDoSolitary <DDoSolitary@gmail.com>
pkgname=v2ray-plugin
pkgver=1.1.0
pkgrel=1
pkgdesc="Yet another SIP003 plugin for shadowsocks, based on v2ray"
url="https://github.com/shadowsocks/v2ray-plugin"
arch=(x86_64)
license=(MIT)
makedepends=(go git)
source=("$pkgname-$pkgver.tar.gz::https://github.com/shadowsocks/$pkgname/archive/v$pkgver.tar.gz")
prepare() {
cd "$srcdir"
mkdir .gopath
export GOPATH="$srcdir/.gopath"
cd "$srcdir/$pkgname-$pkgver"
go get -d -v
}
build() {
cd "$srcdir/$pkgname-$pkgver"
go build -o v2ray-plugin -v
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 v2ray-plugin "$pkgdir/usr/bin/v2ray-plugin"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums=(3b6529fed628370f8db2e9f9016a9e31712c8275f347478a3d6578a00929b7f27000bcfa8e3eea7eba0e00c94b79df0d7fb40d26ab86c90016250a1dedd4d9c6)
|