Date: Monday, November 28, 2022 @ 02:53:26 Author: felixonmars Revision: 1354198
archrelease: copy trunk to community-x86_64 Added: clash/repos/community-x86_64/PKGBUILD (from rev 1354197, clash/trunk/PKGBUILD) clash/repos/community-x86_64/clash@.service (from rev 1354197, clash/trunk/clash@.service) clash/repos/community-x86_64/clash_user.service (from rev 1354197, clash/trunk/clash_user.service) Deleted: clash/repos/community-x86_64/PKGBUILD clash/repos/community-x86_64/clash@.service clash/repos/community-x86_64/clash_user.service --------------------+ PKGBUILD | 88 +++++++++++++++++++++++++-------------------------- clash@.service | 24 ++++++------- clash_user.service | 22 ++++++------ 3 files changed, 67 insertions(+), 67 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-11-28 02:53:17 UTC (rev 1354197) +++ PKGBUILD 2022-11-28 02:53:26 UTC (rev 1354198) @@ -1,44 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Ariel AxionL <i...@axionl.me> -# Contributor: Luke Yue <luked...@gmail.com> - -pkgname=clash -pkgver=1.11.12 -pkgrel=1 -pkgdesc="A rule based proxy in Go" -arch=('x86_64') -url="https://github.com/Dreamacro/clash" -license=('GPL3') -options=('!lto') -depends=('glibc') -makedepends=('go' 'git') -source=("clash@.service" - "clash_user.service" - "${pkgname}-${pkgver}.tar.gz::https://github.com/Dreamacro/clash/archive/v${pkgver}.tar.gz") -sha512sums=('5b53faea10bba16df98a74fcbffebb6c8b7f8c238999a147bb848b2c30732688813915fd6bc32f44ec6f90024ad29dbde059e70760c91ccea198dd05da52d077' - '3ae61e1c6f0213ea8c3113c62f27c704f04f657cda8c726c0e487194dd5c1ce36e448f6e22b61aeef65f4a1910a2df62a3798f0cba9bae10c8e80a7cb1cfb7b3' - '49c4f988c61159d5c6706566cba35db6b5f6ddeaf511f2f38351b5a65e2101b39f323b163c679bd7d11d034fe783f6856958087be83a33a144e98e17b912fe70') - -build() { - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" - - cd "${pkgname}-${pkgver}" - go build -trimpath -ldflags "-X github.com/Dreamacro/clash/constant.Version=${pkgver}" -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@.service" "${pkgdir}/usr/lib/systemd/system/clash@.service" - install -Dm644 "${srcdir}/clash_user.service" "${pkgdir}/usr/lib/systemd/user/clash.service" -} Copied: clash/repos/community-x86_64/PKGBUILD (from rev 1354197, clash/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-11-28 02:53:26 UTC (rev 1354198) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Ariel AxionL <i...@axionl.me> +# Contributor: Luke Yue <luked...@gmail.com> + +pkgname=clash +pkgver=1.12.0 +pkgrel=1 +pkgdesc="A rule based proxy in Go" +arch=('x86_64') +url="https://github.com/Dreamacro/clash" +license=('GPL3') +options=('!lto') +depends=('glibc') +makedepends=('go' 'git') +source=("clash@.service" + "clash_user.service" + "${pkgname}-${pkgver}.tar.gz::https://github.com/Dreamacro/clash/archive/v${pkgver}.tar.gz") +sha512sums=('5b53faea10bba16df98a74fcbffebb6c8b7f8c238999a147bb848b2c30732688813915fd6bc32f44ec6f90024ad29dbde059e70760c91ccea198dd05da52d077' + '3ae61e1c6f0213ea8c3113c62f27c704f04f657cda8c726c0e487194dd5c1ce36e448f6e22b61aeef65f4a1910a2df62a3798f0cba9bae10c8e80a7cb1cfb7b3' + '56a9ed8bc6e7878daa669e2c498e4e0e2fef6e605f47588a95c6a81236c3befc7ac12568f6a2a6a9f8e54128c33e8cf26b54405e8e1760a4393a4124d1d74bce') + +build() { + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + + cd "${pkgname}-${pkgver}" + go build -trimpath -ldflags "-X github.com/Dreamacro/clash/constant.Version=${pkgver}" -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@.service" "${pkgdir}/usr/lib/systemd/system/clash@.service" + install -Dm644 "${srcdir}/clash_user.service" "${pkgdir}/usr/lib/systemd/user/clash.service" +} Deleted: clash@.service =================================================================== --- clash@.service 2022-11-28 02:53:17 UTC (rev 1354197) +++ clash@.service 2022-11-28 02:53:26 UTC (rev 1354198) @@ -1,12 +0,0 @@ -[Unit] -Description=A rule based proxy in Go for %i. -After=network.target - -[Service] -Type=exec -User=%i -Restart=on-abort -ExecStart=/usr/bin/clash - -[Install] -WantedBy=multi-user.target Copied: clash/repos/community-x86_64/clash@.service (from rev 1354197, clash/trunk/clash@.service) =================================================================== --- clash@.service (rev 0) +++ clash@.service 2022-11-28 02:53:26 UTC (rev 1354198) @@ -0,0 +1,12 @@ +[Unit] +Description=A rule based proxy in Go for %i. +After=network.target + +[Service] +Type=exec +User=%i +Restart=on-abort +ExecStart=/usr/bin/clash + +[Install] +WantedBy=multi-user.target Deleted: clash_user.service =================================================================== --- clash_user.service 2022-11-28 02:53:17 UTC (rev 1354197) +++ clash_user.service 2022-11-28 02:53:26 UTC (rev 1354198) @@ -1,11 +0,0 @@ -[Unit] -Description=A rule based proxy in Go. -After=network.target - -[Service] -Type=exec -Restart=on-abort -ExecStart=/usr/bin/clash - -[Install] -WantedBy=default.target Copied: clash/repos/community-x86_64/clash_user.service (from rev 1354197, clash/trunk/clash_user.service) =================================================================== --- clash_user.service (rev 0) +++ clash_user.service 2022-11-28 02:53:26 UTC (rev 1354198) @@ -0,0 +1,11 @@ +[Unit] +Description=A rule based proxy in Go. +After=network.target + +[Service] +Type=exec +Restart=on-abort +ExecStart=/usr/bin/clash + +[Install] +WantedBy=default.target