summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0520a509737c554144755cb5a7073763a03c2b8 (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
40
41
42
43
44
45
46
47
48
49
50

# Maintainer: lisuke <1657787678@qq.com>
pkgname=xx-net
pkgver=3.12.10
pkgrel=1

pkgdesc="XX-Net, a web proxy tool."
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/XX-net/XX-Net"
license=('unknown')
depends=('python2')
options=('!strip')

optdepends=(
	'python2: A high-level scripting language'
	'supervisor: A system for controlling process state under UNIX'
	'miredo: a Teredo server/client, x86_64'
	'miredo-debian: a Teredo client, armv7'
		)
makedepends=()
checkdepends=()

install=$pkgname.install


source=(
	"https://codeload.github.com/XX-net/XX-Net/tar.gz/$pkgver"
	"XX-net.ini"
		)
noextract=()
md5sums=(
	'8574635127126af3124061a1508f8566'
	'd439251c0022e4537231bbde87d36bac'
		)
validpgpkeys=()

package() {
	echo $pkgdir

	mkdir -p $pkgdir/opt/XX-net/
	cp -r ${srcdir}/XX-Net-$pkgver/* $pkgdir/opt/XX-net/

	mkdir -p $pkgdir/usr/bin/
	ln -s /opt/XX-net/xx_net.sh $pkgdir/usr/bin/xx_net

	mkdir -p $pkgdir/etc/supervisor.d/
	cp ${srcdir}/XX-net.ini $pkgdir/etc/supervisor.d/

	mkdir -p /var/log/supervisor/
}