summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGzxhwq2021-12-25 22:18:41 +0800
committerGzxhwq2021-12-25 22:18:41 +0800
commite69aba54ab07a6fb82f67e8ab7cdf2c1e53f19fa (patch)
treec02a46a42bf879d3f2d0c7718c97d6523922e58d
parent2383f1da4c3f4043807ba3805ea025b5f749ecd8 (diff)
downloadaur-e69aba54ab07a6fb82f67e8ab7cdf2c1e53f19fa.tar.gz
Symbolic link to file instead of directory
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 7 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1f533a87de8e..c250619a703d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = v2ray-rules-dat-autoupdate
pkgdesc = Enhanced edition of V2Ray and Xray rules dat files, compatible with Trojan-Go. Automaitcally update.
- pkgver = 1.0
+ pkgver = 1.1
pkgrel = 1
url = https://github.com/Loyalsoldier/v2ray-rules-dat
install = v2ray-rules-dat-autoupdate.install
@@ -31,7 +31,7 @@ pkgbase = v2ray-rules-dat-autoupdate
source = v2ray-rules-dat-autoupdate.tmpfiles
source = v2ray-rules-dat-autoupdate.service
source = v2ray-rules-dat-autoupdate.timer
- sha256sums = fa954de1d86de38ffec91fed6ee0b958ad3fbb42892c6dd6ceeff7db8e3a30c0
+ sha256sums = 171b60ed73b282980460177fb6722ccc2dd80d89bb1aee41e3a4a530a680306d
sha256sums = 1fd7c4f89bb0b89520b1615a5d6e1372a90a3b13ecb1c6669825c44cc52169b4
sha256sums = d5deeb9e02b2cf6e233da4369bb7d74e06054bd54ee9e62875f3342d7c931dbd
sha256sums = 5d0fac85c93516f45281f3e45071f4f98c4a9eadfbd72602129c888c823b79ef
diff --git a/PKGBUILD b/PKGBUILD
index 18b7c5b2e89b..c922fa990c9d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=v2ray-rules-dat-autoupdate
_pkgname=v2ray-rules-dat
pkgdesc="Enhanced edition of V2Ray and Xray rules dat files, compatible with Trojan-Go. Automaitcally update."
-pkgver=1.0
+pkgver=1.1
pkgrel=1
arch=('any')
url="https://github.com/Loyalsoldier/v2ray-rules-dat"
@@ -44,9 +44,10 @@ package() {
install -Dm644 "./geoip.dat" "${pkgdir}/var/lib/${_pkgname}/geoip.dat"
install -Dm644 "./geosite.dat" "${pkgdir}/var/lib/${_pkgname}/geosite.dat"
- mkdir -p "${pkgdir}/usr/share/"
- ln -sf "/var/lib/${_pkgname}" "${pkgdir}/usr/share/v2ray"
- ln -sf "/var/lib/${_pkgname}" "${pkgdir}/usr/share/xray"
+ mkdir -p "${pkgdir}/usr/share/"{v2ray,xray}
+
+ ln -sf "/var/lib/${_pkgname}/"*.dat "${pkgdir}/usr/share/v2ray/"
+ ln -sf "/var/lib/${_pkgname}/"*.dat "${pkgdir}/usr/share/xray/"
install -Dm755 "./${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "./${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"