blob: e9df080f62e067a7aa3cf4e5edd56aa02bdff07e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: maniacata <maniaciachao at gmail dot com>
# Contributor: sdvcrx <memory.silentvoyage at gmail dot com>
pkgname=clashr-bin
_pkgname=clashr
pkgver=0.19.0.2
pkgrel=1
pkgdesc="A rule based proxy in Go with SSR protocol support."
url="https://github.com/frainzy1477/clashrdev"
license=("MIT")
arch=("x86_64")
provides=("clashr")
conflicts=("clashr")
depends=("glibc")
source=(clashr@.service
clashr_user.service
"$_pkgname-$pkgver.gz::${url}/releases/download/v${pkgver}/clashr-linux-amd64-v${pkgver}.gz")
noextract=("$_pkgname-$pkgver.gz")
sha256sums=(
"7aa265e329a54c9a1c86464a0a4567d332f04de3a618a85b71934d04e0210343"
"ea8c4bfb4291e0fa6442644a233e168302c186ef36a39ef56fc75989b56213d9"
"66265b365faf1455e11071a5f326cf91ec8dbf1adecbd5f4e444f9f4d512281e"
)
install=$_pkgname.install
prepare() {
cd "${srcdir}/"
gunzip -k -f "$_pkgname-$pkgver.gz"
}
package() {
cd "${srcdir}/"
install -Dm755 "$_pkgname-$pkgver" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 clashr@.service ${pkgdir}/usr/lib/systemd/system/clashr@.service
install -Dm644 clashr_user.service ${pkgdir}/usr/lib/systemd/user/clashr.service
}
|