diff options
author | AkinoKaede | 2020-12-01 13:23:01 +0800 |
---|---|---|
committer | AkinoKaede | 2020-12-01 13:23:01 +0800 |
commit | bb8f6b128517a80583b30db86b329fb5b508b0d5 (patch) | |
tree | d8c9e232f5c337a6e3663f0463547ab691de3d30 /PKGBUILD | |
parent | ba7992a6a90ab0111c5bdc7b99ca77eb4f383062 (diff) | |
download | aur-bb8f6b128517a80583b30db86b329fb5b508b0d5.tar.gz |
more stanardied
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -10,10 +10,10 @@ arch=('any') url="https://github.com/XTLS/Xray-core" license=('MPLv2') depends=('glibc' 'v2ray-domain-list-community' 'v2ray-geoip') -makedepends=('go' 'git') +makedepends=('go') backup=(etc/xray/config.json) source=( - "$pkgname-$pkgver.tar.gz::https://github.com/XTLS/Xray-core/archive/v$pkgver.tar.gz" + "${pkgname}-${pkgver}.tar.gz::${url}/archive/v$pkgver.tar.gz" "config.json" "vpoint_socks_vmess.json" "vpoint_vmess_freedom.json" @@ -30,7 +30,7 @@ sha512sums=( ) build() { - cd $srcdir/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,17 +39,17 @@ build() { } check() { - cd $srcdir/Xray-core-$pkgver + cd "${srcdir}"/"Xray-core-${pkgver}" go test -p 1 -tags json -v -timeout 30m github.com/xtls/xray-core/v1/core/... } package() { - cd $startdir - install -Dm644 xray.service "$pkgdir"/usr/lib/systemd/system/xray.service - install -Dm644 xray@.service "$pkgdir"/usr/lib/systemd/system/xray@.service - install -Dm644 *.json -t "$pkgdir"/etc/xray/ + cd "${srcdir}" + install -Dm644 xray.service "${pkgdir}"/usr/lib/systemd/system/xray.service + install -Dm644 xray@.service "${pkgdir}"/usr/lib/systemd/system/xray@.service + install -Dm644 *.json -t "${pkgdir}"/etc/xray/ - cd $srcdir/Xray-core-$pkgver - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/xray/LICENSE - install -Dm755 xray -t "$pkgdir"/usr/bin/ + cd "${srcdir}"/"Xray-core-${pkgver}" + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/xray/LICENSE + install -Dm755 xray -t "${pkgdir}"/usr/bin/ } |