PKGBUILDs/community/xtrabackup/PKGBUILD

57 lines
2 KiB
Bash
Raw Normal View History

2019-01-15 14:45:05 +00:00
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove dependency on numactl
pkgname=xtrabackup
2020-03-16 23:39:18 +00:00
pkgver=8.0.10
2019-12-11 19:20:24 +00:00
_boostver=1.70.0
2019-03-13 19:42:05 +00:00
pkgrel=1
2019-01-15 14:45:05 +00:00
pkgdesc='Non-blocking backup tool for MySQL'
arch=('x86_64')
url='https://www.percona.com/software/mysql-database/percona-xtrabackup'
license=('GPL')
2019-12-11 19:20:24 +00:00
depends=('libaio' 'libev' 'libgcrypt' 'curl' 'perl-dbd-mysql')
makedepends=('cmake' 'python-sphinx' 'zlib' 'vim' 'libedit' 'libevent' 'protobuf' 're2')
2019-01-15 14:45:05 +00:00
optdepends=('qpress: for compressed backups')
2019-12-11 19:20:24 +00:00
source=("https://www.percona.com/downloads/Percona-XtraBackup-LATEST/Percona-XtraBackup-${pkgver%.*}-${pkgver##*.}/source/tarball/percona-xtrabackup-$pkgver.tar.gz"
"https://dl.bintray.com/boostorg/release/${_boostver}/source/boost_${_boostver//./_}.tar.bz2")
2019-08-08 12:37:47 +00:00
2020-03-16 23:39:18 +00:00
sha256sums=('6d1b6ed78ace1b9e8ca6fe3ec73e07db8d662e4270fff4f77cd41e4021ee9364'
2019-12-11 19:20:24 +00:00
'430ae8354789de4fd19ee52f3b1f739e1fba576f0aded0897c3c2bc00fb38778')
2019-01-15 14:45:05 +00:00
build() {
2019-03-13 19:42:05 +00:00
mkdir build
cd build
2019-01-15 14:45:05 +00:00
cmake -DBUILD_CONFIG=xtrabackup_release \
-DCMAKE_BUILD_TYPE=Release \
-DMYSQL_DATADIR=/var/lib/mysql \
-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \
-DWITH_LIBEVENT=system \
-DWITH_SSL=system \
-DWITH_EDITLINE=system \
-DWITH_LZ4=system \
-DWITH_LZMA=bundled \
-DWITH_PROTOBUF=system \
-DWITH_RE2=system \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_PLUGINDIR="/usr/lib/xtrabackup/plugin" \
-DINSTALL_MANDIR="/usr/share/man" \
-DINSTALL_STATIC_LIBRARIES=OFF \
2019-12-11 19:20:24 +00:00
-DWITH_BOOST="../boost_${_boostver//./_}" \
2019-03-13 19:42:05 +00:00
../percona-xtrabackup-$pkgver
2019-01-15 14:45:05 +00:00
make
}
package() {
2019-03-13 19:42:05 +00:00
cd build
2019-01-15 14:45:05 +00:00
make DESTDIR="$pkgdir" install
cd "$pkgdir"
2019-12-11 19:20:24 +00:00
rm -rf usr/xtrabackup-test \
usr/lib/xtrabackup/plugin/debug \
usr/docs \
usr/share/man/man8 \
usr/share/man/man1/{c,i,m,l,p,z}*
2019-01-15 14:45:05 +00:00
}