summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7290d7b0c827570e374e47b6478fcd2cc441fbf9 (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
# Maintainer: Otto Naderer <otto.naderer@openmailbox.org>
pkgname=twister-core-git
pkgver=5030.69f90bc
pkgrel=1
pkgdesc="Twister core - p2p microblogging"
arch=(i686 x86_64 armv7h armv6h)
url="http://twister.net.co/"
license=('MIT' 'BSD')
groups=()
depends=(openssl db boost-libs miniupnpc)
makedepends=('git' 'boost')
source=("git://github.com/miguelfreitas/twister-core.git")
md5sums=("SKIP")

_gitname=twister-core

build() {
  cd "$srcdir/$_gitname"
  if test "$CARCH" == armv6h; then
    ./bootstrap.sh --enable-logging --enable-dht --enable-sse2=no
  else
    ./bootstrap.sh --enable-logging --enable-dht
  fi
  make
}

package() {
  cd "$srcdir/$_gitname/"
  mkdir -p "$pkgdir/usr/bin/"
  install twisterd "$pkgdir/usr/bin/"
}

pkgver() {
  cd $_gitname
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}