diff options
author | DDoSolitary | 2019-02-18 05:25:59 +0900 |
---|---|---|
committer | DDoSolitary | 2019-02-18 05:25:59 +0900 |
commit | 44b1f3cdfb2bbde1941e103a918b1368b1a834cd (patch) | |
tree | cb8e21fab6ec22d85a404711dca4a1fcd4a95c26 | |
parent | 2f5f8ea7ea92562e0db457e057bf8f93855d63fb (diff) | |
download | aur-44b1f3cdfb2bbde1941e103a918b1368b1a834cd.tar.gz |
Fix build script.
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -8,23 +8,22 @@ arch=(x86_64) license=(MIT) makedepends=(go) source=("$pkgname-$pkgver.tar.gz::https://github.com/shadowsocks/$pkgname/archive/v$pkgver.tar.gz") -builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$srcdir" mkdir .gopath export GOPATH="$srcdir/.gopath" - cd "$builddir" + cd "$srcdir/$pkgname-$pkgver" go get -d -v } build() { - cd "$builddir" + cd "$srcdir/$pkgname-$pkgver" go build -o v2ray-plugin -v } package() { - cd "$builddir" + cd "$srcdir/$pkgname-$pkgver" install -Dm755 v2ray-plugin "$pkgdir/usr/bin/v2ray-plugin" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/" } |