summaryrefslogtreecommitdiff
path: root/pcr/galera/PKGBUILD
blob: c7a181b3e91e8f83cce6763ab9baa0c5d91f45ff (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
# Maintainer: Rustam Tsurik <rustam.tsurik@gmail.com>
# Contributor: Nico Suarez <nicodoggie@gmail.com>

pkgname=galera
pkgver=25.3.5
pkgrel=2
pkgdesc='Galera WSREP provider'
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
depends=('openssl')
makedepends=('boost>=1.57' 'check' 'scons' 'patch')
url='http://www.codership.com'
options=('!libtool')
source=(https://launchpad.net/galera/3.x/$pkgver/+download/galera-$pkgver-src.tar.gz)
sha256sums=('9e6d718bac9608c69cbfc0662963b29c13659c576aaa8469b6a325d75603f7a3')

build(){
  cd "$pkgname-$pkgver-src"
  # A deprecation warning makes the build fail
  scons strict_build_flags=0
}

package(){
  install -Dm0644 "$srcdir"/$pkgname-$pkgver-src/libgalera_smm.so "$pkgdir"/usr/lib/libgalera_smm.so
  install -Dm0755 "$srcdir"/$pkgname-$pkgver-src/garb/garbd "$pkgdir"/usr/bin/garbd
  install -Dm0644 "$srcdir"/$pkgname-$pkgver-src/scripts/packages/README "$pkgdir"/usr/share/doc/galera/README
  install -m0644 "$srcdir"/$pkgname-$pkgver-src/scripts/packages/README-MySQL "$pkgdir"/usr/share/doc/galera/README-MySQL
  install -m0644 "$srcdir"/$pkgname-$pkgver-src/COPYING "$pkgdir"/usr/share/doc/galera/COPYING
}