Skip to content

Instantly share code, notes, and snippets.

@quangIO
Created December 2, 2018 07:28
Show Gist options
  • Save quangIO/5cac7b95d6705997ba881aee066c119e to your computer and use it in GitHub Desktop.
Save quangIO/5cac7b95d6705997ba881aee066c119e to your computer and use it in GitHub Desktop.
Seastar PKGBUILD for Arch Linux
pkgname=seastar-git
pkgdesc='High performance server-side application framework'
pkgver=r3925.c79e9dec
pkgrel=1
arch=('x86_64')
url='https://github.com/scylladb/seastar'
license=('Apache-2')
depends=('hwloc' 'boost' 'boost-libs' 'hwloc' 'numactl' 'libpciaccess' 'crypto++' 'libxml2' 'xfsprogs' 'gnutls' 'lksctp-tools' 'lz4' 'systemtap' 'libtool' 'yaml-cpp')
makedepends=('git' 'python' 'cmake' 'ninja' 'gcc' '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
git clone https://github.com/fmtlib/fmt --depth 1 -b master
mkdir build
cmake -DCMAKE_INSTALL_PREFIX=/usr .. -DSeastar_EXCLUDE_TESTS_FROM_ALL=ON -DSeastar_APPS=OFF
}
build() {
cd seastar/build
make
}
package() {
cd seastar/build
make DESTDIR="$pkgdir" install
cd "$pkgdir" && mv usr/lib64 usr/lib
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment