summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8c42387dc8aab32cd859df172e900ab2fdafb0a (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
# Maintainer: ProFfeSsoRr <evvsoft at gmail dot com>

pkgname=wal2json
pkgver=1_0
pkgrel=1
pkgdesc="Output plugin for logical decoding PostgreSQL WAL's"
arch=(i686 x86_64)
url="https://github.com/eulerto/wal2json"
license=('BSD')
depends=('postgresql>=9.4')
install="wal2json.install"
source=("https://github.com/eulerto/wal2json/archive/${pkgname}_${pkgver}.tar.gz"
        "wal2json.install")
sha256sums=('d8c1b774bc2d41747ae4266280f798b26e8e72e8ea46a58b71764edb98cf2ef4'
            '4dcef8c4e2c6badb3c68af16235632b042e867cbef0beecac4734acb53f7915c')

build() {
  cd "$srcdir/${pkgname}-${pkgname}_${pkgver}"
  USE_PGXS=1 make
}

package() {
  cd "$srcdir/${pkgname}-${pkgname}_${pkgver}"
  USE_PGXS=1 make DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/wal2json/LICENSE
}