Date: Saturday, March 7, 2020 @ 14:30:15
Author: felixonmars
Revision: 591171
archrelease: copy trunk to community-x86_64
Added:
clash/repos/community-x86_64/
clash/repos/community-x86_64/PKGBUILD
(from rev 591170, clash/trunk/PKGBUILD)
clash/repos/community-x86_64/[email protected]
(from rev 591170, clash/trunk/[email protected])
clash/repos/community-x86_64/clash_user.service
(from rev 591170, clash/trunk/clash_user.service)
--------------------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
[email protected] | 12 ++++++++++++
clash_user.service | 11 +++++++++++
3 files changed, 55 insertions(+)
Copied: clash/repos/community-x86_64/PKGBUILD (from rev 591170,
clash/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2020-03-07 14:30:15 UTC (rev 591171)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Ariel AxionL <[email protected]>
+# Contributor: Luke Yue <[email protected]>
+
+pkgname=clash
+pkgver=0.18.0
+pkgrel=1
+pkgdesc="A rule based proxy in Go"
+arch=('x86_64')
+url="https://github.com/Dreamacro/clash"
+license=('GPL3')
+makedepends=('go' 'git')
+depends=('glibc')
+source=("[email protected]"
+ "clash_user.service"
+
"${pkgname}-${pkgver}.tar.gz::https://github.com/Dreamacro/clash/archive/v${pkgver}.tar.gz")
+sha512sums=('e9e215e0a06d0d1072467342dd72e777725b94634714c5bd5fdee31f48897d9b8ab7e83830d836533d6862fa6ebfda56dbf138edd873140de61d8ccdf2a54572'
+
'338c3a5904623bec48c03b2ef8cf452979c229fc5b89b2e0447664b40cd6e29c83cae47a19145be76d3ee2f0b6a54184a0cff69b834ba6107b444caacc02decf'
+
'abfaebf269c3cf69fa82a7537dfe8b5b00ea332bdf70d4b3d3d8ec232b697b87e5450bd63d00b11c4785a8d1555b05aec47a8d0f7f7f69b2085946919fed3113')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ go build -ldflags "-extldflags ${LDFLAGS} -X
github.com/Dreamacro/clash/constant.Version=${pkgver} -w -s" -mod=readonly
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ install -Dm755 "clash" "${pkgdir}/usr/bin/clash"
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/clash/LICENSE"
+ install -Dm644 "${srcdir}/[email protected]"
"${pkgdir}/usr/lib/systemd/system/[email protected]"
+ install -Dm644 "${srcdir}/clash_user.service"
"${pkgdir}/usr/lib/systemd/user/clash.service"
+}
Copied: clash/repos/community-x86_64/[email protected] (from rev 591170,
clash/trunk/[email protected])
===================================================================
--- community-x86_64/[email protected] (rev 0)
+++ community-x86_64/[email protected] 2020-03-07 14:30:15 UTC (rev 591171)
@@ -0,0 +1,12 @@
+[Unit]
+Description=A rule based proxy in Go for %i.
+After=network.target
+
+[Service]
+Type=simple
+User=%i
+Restart=on-abort
+ExecStart=/usr/bin/clash
+
+[Install]
+WantedBy=multi-user.target
Copied: clash/repos/community-x86_64/clash_user.service (from rev 591170,
clash/trunk/clash_user.service)
===================================================================
--- community-x86_64/clash_user.service (rev 0)
+++ community-x86_64/clash_user.service 2020-03-07 14:30:15 UTC (rev 591171)
@@ -0,0 +1,11 @@
+[Unit]
+Description=A rule based proxy in Go.
+After=network.target
+
+[Service]
+Type=simple
+Restart=on-abort
+ExecStart=/usr/bin/clash
+
+[Install]
+WantedBy=default.target