Date: Wednesday, March 16, 2022 @ 17:15:20 Author: felixonmars Revision: 1155530
archrelease: copy trunk to community-x86_64 Added: clash/repos/community-x86_64/PKGBUILD (from rev 1155529, clash/trunk/PKGBUILD) clash/repos/community-x86_64/clash@.service (from rev 1155529, clash/trunk/clash@.service) clash/repos/community-x86_64/clash_user.service (from rev 1155529, 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 | 87 +++++++++++++++++++++++++-------------------------- clash@.service | 24 +++++++------- clash_user.service | 22 ++++++------ 3 files changed, 67 insertions(+), 66 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-03-16 17:15:07 UTC (rev 1155529) +++ PKGBUILD 2022-03-16 17:15:20 UTC (rev 1155530) @@ -1,43 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Ariel AxionL <i...@axionl.me> -# Contributor: Luke Yue <luked...@gmail.com> - -pkgname=clash -pkgver=1.8.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=("clash@.service" - "clash_user.service" - "${pkgname}-${pkgver}.tar.gz::https://github.com/Dreamacro/clash/archive/v${pkgver}.tar.gz") -sha512sums=('5b53faea10bba16df98a74fcbffebb6c8b7f8c238999a147bb848b2c30732688813915fd6bc32f44ec6f90024ad29dbde059e70760c91ccea198dd05da52d077' - '3ae61e1c6f0213ea8c3113c62f27c704f04f657cda8c726c0e487194dd5c1ce36e448f6e22b61aeef65f4a1910a2df62a3798f0cba9bae10c8e80a7cb1cfb7b3' - '7da78efaad5f18905bf3be719172cf6270de21c0dfe81fb1d0b918e3c35bf3433595467a3fb28e4d6508b7fa027a18fa2a1356aa0aaa0bef26aaee04ba61aee6') - -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 1155529, clash/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-03-16 17:15:20 UTC (rev 1155530) @@ -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.9.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' + 'e9cc5d043d118a4fac5f4ba0eb9769ed7659d8ab14d416988b8d58b2f2f68d437f0dccb6fee78ebc911d956f8a407895203ffe3fe3c34e4defdb9586cd197b1d') + +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-03-16 17:15:07 UTC (rev 1155529) +++ clash@.service 2022-03-16 17:15:20 UTC (rev 1155530) @@ -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 1155529, clash/trunk/clash@.service) =================================================================== --- clash@.service (rev 0) +++ clash@.service 2022-03-16 17:15:20 UTC (rev 1155530) @@ -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-03-16 17:15:07 UTC (rev 1155529) +++ clash_user.service 2022-03-16 17:15:20 UTC (rev 1155530) @@ -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 1155529, clash/trunk/clash_user.service) =================================================================== --- clash_user.service (rev 0) +++ clash_user.service 2022-03-16 17:15:20 UTC (rev 1155530) @@ -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