summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkinoKaede2020-11-26 23:28:12 +0800
committerAkinoKaede2020-11-26 23:28:12 +0800
commit608f2c62e0c9a08c0b1022ad0df06def878abc64 (patch)
tree3c3aa459d1b215c14b49401787692daeb76ba2cb
parent09e6a93a51040d3c6c0901398caedd9783a73c2a (diff)
downloadaur-608f2c62e0c9a08c0b1022ad0df06def878abc64.tar.gz
srcdir
-rw-r--r--PKGBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a629007baa4..5b19d4996d4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
# Maintainer: AkinoKaede <autmaple@protonmail.com>
-#Special thanks: Felix Yan <felixonmars@archlinux.org>
+# Special thanks: Felix Yan <felixonmars@archlinux.org>
# Contributor: pandada8 <pandada8@gmail.com>
pkgname=xray
@@ -30,7 +30,7 @@ sha512sums=(
)
build() {
- cd $startdir/src/Xray-core-$pkgver
+ cd $srcdir/Xray-core-$pkgver
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
@@ -39,7 +39,7 @@ build() {
}
check() {
- cd $startdir/src/Xray-core-$pkgver
+ cd $srcdir/Xray-core-$pkgver
go test -p 1 -tags json -v -timeout 30m github.com/xtls/xray-core/v1/core/...
}
@@ -49,7 +49,7 @@ package() {
install -Dm644 xray@.service "$pkgdir"/usr/lib/systemd/system/xray@.service
install -Dm644 *.json -t "$pkgdir"/etc/xray/
- cd $startdir/src/Xray-core-$pkgver
+ cd $srcdir/Xray-core-$pkgver
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/xray/LICENSE
install -Dm755 xray -t "$pkgdir"/usr/bin/
}