summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ce33a57d5fb6c1a17a77d9305185ec170bc23d1 (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
# Maintainer: Luong The Minh Quang <luci at devel.faith>
pkgname=seastar-git
pkgdesc='High performance server-side application framework'
pkgver=r4026.e67572ef
pkgrel=1
arch=('x86_64')
url='https://github.com/scylladb/seastar'
license=('Apache')
depends=('hwloc' 'boost' 'boost-libs' 'hwloc' 'numactl' 'libpciaccess' 'crypto++' 'libxml2' 'xfsprogs' 'gnutls' 'lksctp-tools' 'lz4' 'systemtap' 'libtool' 'yaml-cpp' 'fmt-git')
makedepends=('git' 'cmake' 'ragel')
source=("git+https://github.com/scylladb/seastar#branch=master")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/seastar"
  printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}

prepare() {
  cd seastar
  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr .. -DSeastar_DEMOES=OFF -DSeastar_DOCS=OFF -DSeastar_TESTING=OFF -DSeastar_APPS=OFF
}

build() {
  cd seastar/build
  make
}

package() {
  cd seastar/build
  make DESTDIR="$pkgdir" install
  cd "$pkgdir" && mv usr/lib64 usr/lib
}