blob: 1ff16be93487ee64c80727a97d3eeedb210805d2 (
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
|
# Maintainer: drakkan <nicola.murino at gmail dot com>
# Contributor: Marti Raudsepp <marti at juffo dot org>
pkgname=pg_repack
pkgver=1.5.0
pkgrel=2
pkgdesc="Reorganize tables in PostgreSQL databases with minimal locks (fork of pg_reorg)"
arch=(i686 x86_64)
url="https://reorg.github.io/pg_repack/"
license=('BSD')
depends=('postgresql-libs')
makedepends=('postgresql' 'clang')
source=("https://github.com/reorg/pg_repack/archive/ver_${pkgver}.tar.gz")
sha256sums=('9a14d6a95bfa29f856aa10538238622c1f351d38eb350b196c06720a878ccc52')
prepare() {
cd "$srcdir/$pkgname-ver_$pkgver"
}
build() {
cd "$srcdir/$pkgname-ver_$pkgver"
make
}
package() {
cd "$srcdir/$pkgname-ver_$pkgver"
install -Dm755 bin/pg_repack "$pkgdir"/usr/bin/pg_repack
install -Dm755 lib/pg_repack.so "$pkgdir"/usr/lib/postgresql/pg_repack.so
install -Dm644 lib/pg_repack--${pkgver}.sql "$pkgdir"/usr/share/postgresql/extension/pg_repack--${pkgver}.sql
install -Dm644 lib/pg_repack.control "$pkgdir"/usr/share/postgresql/extension/pg_repack.control
install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/pg_repack/COPYRIGHT
}
# vim: ts=2 sw=2 et:
|