[arch-commits] Commit in clash/repos/community-x86_64 (6 files)

Felix Yan felixonmars at archlinux.org
Sun Mar 22 11:34:53 UTC 2020


    Date: Sunday, March 22, 2020 @ 11:34:52
  Author: felixonmars
Revision: 603433

archrelease: copy trunk to community-x86_64

Added:
  clash/repos/community-x86_64/PKGBUILD
    (from rev 603432, clash/trunk/PKGBUILD)
  clash/repos/community-x86_64/clash at .service
    (from rev 603432, clash/trunk/clash at .service)
  clash/repos/community-x86_64/clash_user.service
    (from rev 603432, clash/trunk/clash_user.service)
Deleted:
  clash/repos/community-x86_64/PKGBUILD
  clash/repos/community-x86_64/clash at .service
  clash/repos/community-x86_64/clash_user.service

--------------------+
 PKGBUILD           |   69 +++++++++++++++++++++++++++------------------------
 clash at .service     |   24 ++++++++---------
 clash_user.service |   22 ++++++++--------
 3 files changed, 60 insertions(+), 55 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-22 11:34:31 UTC (rev 603432)
+++ PKGBUILD	2020-03-22 11:34:52 UTC (rev 603433)
@@ -1,32 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Ariel AxionL <i at axionl.me>
-# Contributor: Luke Yue <lukedyue at gmail.com>
-
-pkgname=clash
-pkgver=0.18.0
-pkgrel=2
-pkgdesc="A rule based proxy in Go"
-arch=('x86_64')
-url="https://github.com/Dreamacro/clash"
-license=('GPL3')
-makedepends=('go-pie' 'git')
-depends=('glibc')
-source=("clash at .service"
-        "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}/clash at .service" "${pkgdir}/usr/lib/systemd/system/clash at .service"
-    install -Dm644 "${srcdir}/clash_user.service" "${pkgdir}/usr/lib/systemd/user/clash.service"
-}

Copied: clash/repos/community-x86_64/PKGBUILD (from rev 603432, clash/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-22 11:34:52 UTC (rev 603433)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ariel AxionL <i at axionl.me>
+# Contributor: Luke Yue <lukedyue at gmail.com>
+
+pkgname=clash
+pkgver=0.19.0
+pkgrel=1
+pkgdesc="A rule based proxy in Go"
+arch=('x86_64')
+url="https://github.com/Dreamacro/clash"
+license=('GPL3')
+makedepends=('go-pie' 'git')
+depends=('glibc')
+source=("clash at .service"
+        "clash_user.service"
+        "${pkgname}-${pkgver}.tar.gz::https://github.com/Dreamacro/clash/archive/v${pkgver}.tar.gz")
+sha512sums=('e9e215e0a06d0d1072467342dd72e777725b94634714c5bd5fdee31f48897d9b8ab7e83830d836533d6862fa6ebfda56dbf138edd873140de61d8ccdf2a54572'
+            '338c3a5904623bec48c03b2ef8cf452979c229fc5b89b2e0447664b40cd6e29c83cae47a19145be76d3ee2f0b6a54184a0cff69b834ba6107b444caacc02decf'
+            '40b975c43bb745e4a07840bc189f8cca9ca8e7114462c3e00b307152d73e345cf23d562b4112c86b0753d947912ad9c713553bac0dbc38a7068b5e94ce55824c')
+
+build() {
+    cd "${pkgname}-${pkgver}"
+    go build -trimpath -ldflags "-extldflags ${LDFLAGS} -X github.com/Dreamacro/clash/constant.Version=${pkgver} -w -s" -mod=readonly
+}
+
+check() {
+    cd "${pkgname}-${pkgver}"
+    go test github.com/Dreamacro/clash/...
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    install -Dm755 "clash" "${pkgdir}/usr/bin/clash"
+    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/clash/LICENSE"
+    install -Dm644 "${srcdir}/clash at .service" "${pkgdir}/usr/lib/systemd/system/clash at .service"
+    install -Dm644 "${srcdir}/clash_user.service" "${pkgdir}/usr/lib/systemd/user/clash.service"
+}

Deleted: clash at .service
===================================================================
--- clash at .service	2020-03-22 11:34:31 UTC (rev 603432)
+++ clash at .service	2020-03-22 11:34:52 UTC (rev 603433)
@@ -1,12 +0,0 @@
-[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 at .service (from rev 603432, clash/trunk/clash at .service)
===================================================================
--- clash at .service	                        (rev 0)
+++ clash at .service	2020-03-22 11:34:52 UTC (rev 603433)
@@ -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

Deleted: clash_user.service
===================================================================
--- clash_user.service	2020-03-22 11:34:31 UTC (rev 603432)
+++ clash_user.service	2020-03-22 11:34:52 UTC (rev 603433)
@@ -1,11 +0,0 @@
-[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

Copied: clash/repos/community-x86_64/clash_user.service (from rev 603432, clash/trunk/clash_user.service)
===================================================================
--- clash_user.service	                        (rev 0)
+++ clash_user.service	2020-03-22 11:34:52 UTC (rev 603433)
@@ -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



More information about the arch-commits mailing list