summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bf6811516b3eb35803be51457903a4f9b159ca1 (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
39
40
41
42
# Maintainer: m8D2 <omui (at) proton mail (dot) com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: jiangxq <jiangxueqian at gmail dot com>
# Contributor: zh99998 <zh99998@gmail.com>
# Contributor: 4679kun <admin at 4679 dot us>

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
}