blob: 676026f8a2fe2ad88c09ab21b542a07fef65de72 (
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
|
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=lyrebird-proxy
pkgver=0.5.0
pkgrel=1
pkgdesc="pluggable transport proxy for Tor, implementing obfs4"
url="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird"
license=('BSD-3-Clause')
arch=('x86_64' 'aarch64' 'armv7h')
depends=('glibc')
makedepends=('go')
source=("$pkgname-$pkgver.tar.bz2::https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird/-/archive/lyrebird-$pkgver/lyrebird-lyrebird-$pkgver.tar.bz2"
lyrebird-proxy.service)
sha256sums=('63dd7c538227b4f66bd1192dd2131b1bc30d1904f5f8d5c43b0d675a381e8133'
'9c242568d20e8025571d49a7aa814d5e8c65ef9e13d67e4ffe85cc7280f444f3')
b2sums=('d534074f6db7ad190b12010ddc44889c15ae2c3dc594e30dea41ae1f092ca83481ecb51611d763b63a8b3d8d97f887fdc4e216b41dab3b219d7c2df2f7b5d84f'
'ba3e53afa5ced9bfda3de63ba7f62fd4b4fc92043e8c80edfc1d78c417e5aadddc56dc09f98cf8f20249d88486d4c9a3e47bee9e5e4f159c3a4198e4e2b40572')
build() {
cd "$srcdir/lyrebird-lyrebird-$pkgver"
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CFLAGS="$CFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export CGO_LDFLAGS="$LDFLAGS"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -v -o lyrebird ./cmd/lyrebird
}
package() {
cd "$srcdir/lyrebird-lyrebird-$pkgver"
install -Dm0755 lyrebird "$pkgdir/usr/bin/lyrebird"
install -Dm0644 "$srcdir/lyrebird-proxy.service" "$pkgdir/usr/lib/systemd/system/lyrebird-proxy.service"
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|