# Maintainer: m8D2 # Contributor: Felix Yan # Contributor: jiangxq # Contributor: zh99998 # Contributor: 4679kun pkgname=simple-obfs-git pkgver=0.0.5.r46.g486bebd pkgrel=1 pkgdesc='A simple obfusacting tool designed as plugin server of shadowsocks (git version)' arch=(x86_64) url='https://github.com/shadowsocks/simple-obfs' license=(GPL) depends=(libev libcork) makedepends=(asciidoc xmlto) conflicts=(simple-obfs) source=("$pkgname::git+https://github.com/shadowsocks/simple-obfs.git") sha512sums=('SKIP') pkgver() { cd $pkgname # cutting off 'v' prefix that presents in the git tag git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd $pkgname patch -p1 -i debian/patches/0001-Use-libcork-dev-in-system.patch } build() { cd $pkgname ./autogen.sh ./configure --prefix=/usr make } package() { cd $pkgname make DESTDIR="$pkgdir" install }