archrelease: copy trunk to extra-x86_64
[arch-packages.git] / galera / repos / extra-x86_64 / PKGBUILD
blob221e1e580c3776d25339d1a255501d63f5d1d180
1 # Maintainer: Christian Hesse <mail@eworm.de>
2 # Contributor: Rustam Tsurik <rustam.tsurik@gmail.com>
3 # Contributor: Nico Suarez <nicodoggie@gmail.com>
5 pkgname=galera
6 pkgver=26.4.14
7 _mariadb_ver=10.9.5
8 pkgrel=1
9 pkgdesc='write set replication (WSREP) provider for MariaDB cluster'
10 arch=('x86_64')
11 license=('GPL2' 'custom:OpenSSL Linking Exception')
12 depends=('mariadb' 'openssl')
13 makedepends=('boost' 'check' 'cmake')
14 optdepends=('rsync: State Snapshot Transfers with rsync'
15             'socat: State Snapshot Transfers with mariabackup')
16 url='https://galeracluster.com/'
17 options=('!libtool')
18 validpgpkeys=('177F4010FE56CA3336300305F1656F24C74CD1D8') # MariaDB Signing Key <signing-key@mariadb.org>
19 source=("https://rsync.osuosl.org/pub/mariadb/mariadb-${_mariadb_ver}/galera-${pkgver}/src/galera-${pkgver}.tar.gz"{,.asc})
20 sha256sums=('9d3b569f84c7cd98ee5edef05f059482cb01c8e2e6d5b6d0cba7873691118a4b'
21             'SKIP')
23 prepare() {
24   cd "${pkgname}-${pkgver}"
26   sed -i '/^GALERA_VER/s/API + //' wsrep/tests/SConscript
29 build(){
30   cd "${pkgname}-${pkgver}"
32   cmake .
33   make
36 package(){
37   cd "${pkgname}-${pkgver}"
39   install -D -m0755 libgalera_smm.so "${pkgdir}"/usr/lib/galera/libgalera_smm.so
40   ln -s galera/libgalera_smm.so "${pkgdir}"/usr/lib/libgalera_smm.so
42   install -D -m0755 garb/garbd "${pkgdir}"/usr/bin/garbd
44   install -D -m0644 scripts/packages/README "${pkgdir}"/usr/share/doc/galera/README
45   install -D -m0644 scripts/packages/README-MySQL "${pkgdir}"/usr/share/doc/galera/README-MySQL
46   install -D -m0644 scripts/mysql/README "${pkgdir}"/usr/share/doc/galera/mysql/README
47   install -D -m0644 COPYING "${pkgdir}"/usr/share/doc/galera/COPYING