aports/testing/clash/APKBUILD
2022-05-12 02:01:31 +02:00

31 lines
1.0 KiB
Plaintext

# Contributor: Zhuo FENG <fenprace.i@gmail.com>
# Maintainer: Zhuo FENG <fenprace.i@gmail.com>
pkgname=clash
pkgver=1.9.0
pkgrel=3
pkgdesc="rule-based tunnel in go"
url="https://github.com/Dreamacro/clash"
arch="all"
license="GPL-3.0-or-later"
makedepends="go"
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Dreamacro/clash/archive/refs/tags/v$pkgver.tar.gz
clash.initd"
options="!check" # The upstream does not provide a proper way to test the pakcage
build() {
export GOFLAGS="$GOFLAGS -modcacherw"
export GOPATH="$builddir"/gopath
make VERSION="v$pkgver" docker
}
package() {
install -Dm755 bin/clash-docker "$pkgdir"/usr/bin/clash
install -Dm755 "$srcdir"/clash.initd "$pkgdir"/etc/init.d/clash
}
sha512sums="
e9cc5d043d118a4fac5f4ba0eb9769ed7659d8ab14d416988b8d58b2f2f68d437f0dccb6fee78ebc911d956f8a407895203ffe3fe3c34e4defdb9586cd197b1d clash-1.9.0.tar.gz
e22dc344dbcd144b0fc0d77450da2a0cbc5e5f7ffaf01cd411610e00ca131ad18ef3f1b6191fa870bc2a27bdc67236c5e53aa5c9c6bc5f4a195d7f0ff04a7d35 clash.initd
"