Skip to content

Commit

Permalink
Some cleanup and improvement. (#1)
Browse files Browse the repository at this point in the history
* Some cleanup and improvement.

* Remove the my contributor line.
  • Loading branch information
DDoSolitary authored and lrinQVQ committed Nov 2, 2017
1 parent f134104 commit 2f13c4f
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,33 @@
# Maintainer: Max Lv <max.c.lv@gmail.com>
pkgname=simple-obfs
pkgver=0.0.3
pkgrel=1
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="GPL3"
depends="libtool libev-dev c-ares-dev linux-headers"
makedepends="gcc autoconf make automake zlib-devel openssl asciidoc xmlto libpcre32 g++"
source="https://github.com/shadowsocks/simple-obfs/archive/v$pkgver.tar.gz
https://github.com/shadowsocks/libcork/archive/shadowsocks.zip"
sha512sums="1e2f1c5a32508426a58d4894a3623d10ff6add875137444cea9bda61d972f3d36bd8b477358f31e719a9950fc745cebff2c632b4fca117cc439a69a747b85837 simple-obfs-0.0.3.tar.gz
143365f007242c8f5e009f75d03bcc8a4dd55edbdb0b357b0ae76e802a4c3847be3b1b5c93aacb643c5b46b4a102d7dfe8b235ff205e933884e0b983ba7bb1ad libcork-shadowsocks.zip"
builddir="$srcdir"/simple-obfs-$pkgver
includeddir="$srcdir"/libcork-shadowsocks
license="GPLv3+"
makedepends="autoconf automake libtool linux-headers libev-dev c-ares-dev asciidoc xmlto"
subpackages="$pkgname-doc"
builddir="$srcdir/$pkgname"

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

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

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

package() {
Expand Down

0 comments on commit 2f13c4f

Please sign in to comment.