35 lines
1.0 KiB
Bash
35 lines
1.0 KiB
Bash
# Template file for 'shadowsocks-libev'
|
|
pkgname=shadowsocks-libev
|
|
version=3.3.4
|
|
revision=5
|
|
build_style=gnu-configure
|
|
configure_args="--with-pcre=${XBPS_CROSS_BASE}/usr"
|
|
hostmakedepends="pkg-config asciidoc xmlto"
|
|
makedepends="pcre-devel mbedtls-devel libsodium-devel c-ares-devel libev-devel"
|
|
short_desc="Lightweight secured socks5 proxy for embedded devices and low end boxes"
|
|
maintainer="whoami <whoami@systemli.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/shadowsocks/shadowsocks-libev"
|
|
distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
|
|
checksum=fce47a956fad0c30def9c71821bcec450a40d3f881548e31e66cedf262b89eb1
|
|
|
|
system_accounts="shadowsocks"
|
|
make_dirs="/etc/${pkgname} 0750 shadowsocks shadowsocks"
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
post_install() {
|
|
vsv ${pkgname}-server
|
|
vsv ${pkgname}-client
|
|
vsconf debian/config.json
|
|
}
|
|
|
|
shadowsocks-libev-devel_package() {
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib
|
|
}
|
|
}
|