aboutsummaryrefslogtreecommitdiffstats
path: root/testing/shadowsocks-libev/APKBUILD
blob: e0d9e471d4e68e944bf9d10493c580c2939ee8b4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shadowsocks-libev
pkgver=2.5.5
pkgrel=1
pkgdesc="lightweight secured SOCKS5 proxy"
url="https://shadowsocks.org/en/download/servers.html"
arch="all"
license="GPLv3"
depends=""
makedepends="asciidoc autoconf libtool linux-headers
	libressl-dev pcre-dev xmlto libev-dev udns-dev libsodium-dev zlib-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="shadowsocks-libev-$pkgver.tar.gz::https://github.com/shadowsocks/shadowsocks-libev/archive/v$pkgver.tar.gz"
builddir="$srcdir/shadowsocks-libev-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-system-shared-lib \
		|| return 1
	make || return 1
}

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

md5sums="f4593a1ee28f4f8c5378662e0ab2764b  shadowsocks-libev-2.5.5.tar.gz"
sha256sums="46a72367b7301145906185f1e4136e39d6792d27643826e409ab708351b6d0dd  shadowsocks-libev-2.5.5.tar.gz"
sha512sums="5ce15288f23bcb566428b6a46fb47375c9c89ace658e32f049208c6dd5ec644d1be6c1d844f5edaf4073be52e846d37b6d78a310f64f50a95811dfbcc0f91188  shadowsocks-libev-2.5.5.tar.gz"