summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d6f28c848bd1ff99d629fe5f2fa8d544783075c (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
# Maintainer: irmluity <45vw4yz8g@mozmail.com>

_pkgname=clasht
pkgname=${_pkgname}-bin
pkgver=1.20.0
pkgrel=1
pkgdesc="A rule-based tunnel in Go. Provide you with powerful and fast network functions. Convenient for you to witness the larger network world"
arch=('i686' 'x86_64' 'aarch64' 'armv7h')
url='https://github.com/DryPeng/clashT'
license=('GPL3')
depends=()
optdepends=('clash-geoip: A GeoLite2 data created by MaxMind')
provides=(${_pkgname} 'clash')
conflicts=(${_pkgname} ${_pkgname}-git 'clash')
source=(
    "clash.service"
)
source_i686=("${pkgname}-$CARCH-${pkgver}.gz::${url}/releases/download/v${pkgver}/clashT-linux-386-v${pkgver}.gz")
source_x86_64=("${pkgname}-$CARCH-${pkgver}.gz::${url}/releases/download/v${pkgver}/clashT-linux-amd64-v${pkgver}.gz")
source_armv7h=("${pkgname}-$CARCH-${pkgver}.gz::${url}/releases/download/v${pkgver}/clashT-linux-armv7-v${pkgver}.gz")
source_aarch64=("${pkgname}-$CARCH-${pkgver}.gz::${url}/releases/download/v${pkgver}/clashT-linux-arm64-v${pkgver}.gz")
sha256sums=(
    "2112a72532fdda187a649c5b35468dbba32d5c4601f36c107f4be202197c6b7a"
)
sha256sums_i686=('SKIP')
sha256sums_x86_64=('SKIP')
sha256sums_armv7h=('SKIP')
sha256sums_aarch64=('SKIP')

package() {
    cd "${srcdir}"
    install -Dm755 "${pkgname}-${CARCH}-${pkgver}" "${pkgdir}/usr/bin/clash"
    install -Dm644 "clash.service" "${pkgdir}/usr/lib/systemd/system/clash.service"
}