summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6dcdc78bc2935713703606566b12c889ffd5bfd6 (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: Ingo Bürk <admin at airblader dot de>

pkgname=shadowsocksr-libev
pkgver=4.3.1
pkgrel=1
pkgdesc='A Shadowsocks branches'
arch=('i686' 'x86_64')
url='https://github.com/shadowsocksr/shadowsocksr-libev'
license=('GPL')
groups=('i3-vcs')
depends=('libcap' 'mbedtls' 'libev' 'libsodium'
         'udns' 'pcre' 'libcorkipset' 'libbloom')
makedepends=('git' 'asciidoc' 'binutils' 'gcc' 'libtool' 'autoconf' 'automake' 'bison' 'fakeroot' 'flex' 'openssl' 'make')
options=('docs' '!strip')
source=('git+https://github.com/shadowsocksr/shadowsocksr-libev.git')
sha1sums=('SKIP')

_gitname='shadowsocksr-libev'

pkgver() {
  cd "$_gitname"
  git describe --tags | sed 's/-/./g'
}

build() {
  cd "$_gitname"
  ./configure && make
}

package() {
  cd "$_gitname"
  cd build/

  make DESTDIR="$pkgdir/" install

  install -Dm644 ../LICENSE \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: