File: APKBUILD

package info (click to toggle)
simple-obfs 0.0.5-4~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports-sloppy
  • size: 692 kB
  • sloc: ansic: 6,533; makefile: 91; sh: 57
file content (37 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (3)
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
# Contributor: Max Lv <max.c.lv@gmail.com>
# Maintainer: Max Lv <max.c.lv@gmail.com>
pkgname=simple-obfs
pkgver=0.0.4
pkgrel=0
pkgdesc="Simple-obfs is a simple obfusacting tool, designed as plugin server of shadowsocks."
url="https://github.com/shadowsocks/simple-obfs"
arch="all"
license="GPLv3+"
makedepends="autoconf automake libtool linux-headers libev-dev c-ares-dev asciidoc xmlto"
subpackages="$pkgname-doc"
builddir="$srcdir/$pkgname"

prepare() {
	cd "$srcdir"
	git clone "$url"
	cd "$builddir"
	git checkout "v$pkgver"
	git submodule update --init --recursive
}

build() {
	cd "$builddir"
	./autogen.sh
	./configure --prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}