diff options
Diffstat (limited to 'community/xtrabackup/PKGBUILD')
-rw-r--r-- | community/xtrabackup/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/community/xtrabackup/PKGBUILD b/community/xtrabackup/PKGBUILD new file mode 100644 index 000000000..d90eeb4a8 --- /dev/null +++ b/community/xtrabackup/PKGBUILD @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> + +pkgname=xtrabackup +pkgver=2.1.7 +pkgrel=3 +pkgdesc='Non-blocking backup tool for MySQL' +arch=('i686' 'x86_64') +url='http://www.percona.com/software/percona-xtrabackup/' +license=('GPL') +depends=('libaio' 'libgcrypt' 'openssl') +makedepends=('cmake' 'python-sphinx' 'zlib') +source=(http://percona.com/redir/downloads/XtraBackup/XtraBackup-$pkgver/source/percona-xtrabackup-$pkgver.tar.gz + build.patch) + +build() { + cd percona-xtrabackup-$pkgver + + utils/build.sh xtradb55 + cp src/xtrabackup_55 src/xbstream src/xbcrypt . + utils/build.sh xtradb56 + cp src/xtrabackup_56 . + + cd doc + make man +} + +package() { + cd percona-xtrabackup-$pkgver + + for file in innobackupex xtrabackup_55 xtrabackup_56 xbcrypt xbstream; do + install -Dm0755 $file "$pkgdir"/usr/bin/$file + done + + cd doc/build/man + for file in *.1; do + install -Dm0644 $file "$pkgdir"/usr/share/man/man1/$file + done +} + +sha256sums=('b0a89dd805fe25d1fd00c3f84b43d59e88173a19e2075d444a116118e2623587' + 'e6f329c061c921be6e44e16fd64d79bcca8c61ea1ce4a1d2f923408d30318b25') |