blob: 5bf7f0d2559a3f497a4980e8f0c8756028792786 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Contributor: Jake Buchholz <tomalok@gmail.com>
# Maintainer: Jake Buchholz <tomalok@gmail.com>
pkgname=galera
pkgver=26.4.7
pkgrel=4
_wsrepver=26
pkgdesc="Galera replication - Codership's implementation of the write set replication (wsrep) interface"
url="https://galeracluster.com"
arch="x86 x86_64" # doesn't work for the others
license="GPL-2.0-or-later"
depends="mariadb"
makedepends="bash boost-dev check-dev cmake openssl-dev"
subpackages="$pkgname-arbitrator $pkgname-arbitrator-doc:arbitrator_doc"
source="
https://github.com/codership/galera/archive/release_$pkgver.tar.gz
https://github.com/codership/wsrep-API/archive/release_v$_wsrepver.tar.gz
fix_gcomm-test-check_evs2.patch
musl-page-size.patch
musl-sched_param.patch
musl-sys-poll-h.patch
musl-wordsize.patch
"
builddir="$srcdir/$pkgname-release_$pkgver"
prepare() {
default_prepare
ln -s /usr/bin/python3 python
export PATH="$PATH:."
}
build() {
rmdir wsrep/src
cp -a ../wsrep-API-release_v$_wsrepver wsrep/src
cmake .
make
}
check() {
make test
}
package() {
mkdir -p "$pkgdir/usr/lib"
mv libgalera_smm.so "$pkgdir/usr/lib"
}
arbitrator() {
url="https://galeracluster.com/library/documentation/arbitrator.html"
depends=""
mkdir -p "$subpkgdir/usr/sbin"
mv "$builddir/garb/garbd" "$subpkgdir/usr/sbin"
}
arbitrator_doc() {
url="https://galeracluster.com/library/documentation/arbitrator.html"
depends=""
mkdir -p "$subpkgdir/usr/share/man/man8"
mv "$builddir/man/garbd.8" "$subpkgdir/usr/share/man/man8"
gzip "$subpkgdir/usr/share/man/man8/garbd.8"
}
sha512sums="
cfffe2e19c6459d74fd2c3eb2412ccee53afd33663b17bc786e0c13642974a708b9bcddd4631ff924aee225e0b3e20341b492ef9d0353279461b25590dd59fdd release_26.4.7.tar.gz
37ddc2c071ec22688ad6bce0cd44285aa00e2c07abce783d5ca6ba655e702feca8397e57c47e961f6ad4d2c14932fc38bac87b8995940b7b38fed655f6cd6671 release_v26.tar.gz
7e3835046be86bcf36e08de85e3577dc9e56d19b89c0cb9270158d793576428f3d19ff420556a7bc6ddeb0721f6032e23e68952f903e15415e16cf524164663c fix_gcomm-test-check_evs2.patch
196bae14790d6dad46617d107b5ddac6f01694468fb7a049736c6a21c9857b490863eec66be774eeb01300c0dbf4d9871a1b89da6847d92d67473b3aa80dbd3e musl-page-size.patch
de08e34bf52cb39353a72a3608053d9204edcddd24f2f7babe2e5eb753d91bd0ca5909ee07a4d6c7ad54e37fba37ad2866403f1805401dcb68b9958514e17ac2 musl-sched_param.patch
6248970137727c56a4c696bfd88eabaa9dc1dd55c287c4f04051f012470714ca53cb88918cd57027793e2705133237a2e7a608dd01ac36a2ae720448922dd4b4 musl-sys-poll-h.patch
2baf88a6c16360ba1ac2ddf7a87a33f84b3039ca9819d84cfdd96b702da1a6050be1b4ac1f3fe6eff7f539158cdb6369906c4821545b1292d98899ec6e13b249 musl-wordsize.patch
"
|