forked from shadowsocks/simple-obfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPKBUILD
37 lines (33 loc) · 741 Bytes
/
APKBUILD
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 <[email protected]>
# Maintainer: Max Lv <[email protected]>
pkgname=simple-obfs
pkgver=0.0.5
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 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
}