summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ccf07007c74b487549f1f221605d3483a73587d (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: Aztec Rabbit <ars.xda@gmail.com>

_pkgname='brainfuck-psiphon-pro-go'
pkgname="${_pkgname}-bin"
pkgver=1.3.210109
pkgrel=1
pkgdesc="Brainfuck Tunnel [Psiphon Pro Go Version. ${pkgver}]"
arch=('x86_64')
url="https://github.com/aztecrabbit/${_pkgname}"
license=('MIT')
depends=('redsocks')
conflicts=(
	"${_pkgname}-git"
)
source=(
	"https://github.com/aztecrabbit/brainfuck-psiphon-pro-go/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz"
)
md5sums=(
	'3dd336f6a47d17dd6bbef62c363b5258'
)

package() {
	target="${pkgdir}/opt/${_pkgname}"

	install -d -m755 "$target"
	cp -dr --no-preserve='ownership' 'storage' "$target"
	cp -dr --no-preserve='ownership' 'LICENSE' "$target"
	cp -dr --no-preserve='ownership' 'README.md' "$target"
	install -D -m755 'psiphon-tunnel-core' "$target"
	install -D -m755 "$_pkgname" "$target"

	mkdir -p "${pkgdir}/usr/bin"
	ln -sf "/opt/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}