summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2bf6cce302c240b355d2e3f01dfea3cf411755b1 (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
34
35
36
# Contributor: Marti Raudsepp <marti@juffo.org>
# Maintainer: Maxwell Pray <synthead@gmail.com>

pkgname=apgdiff
pkgver=2.4
pkgrel=3
pkgdesc="A free PostgreSQL diff tool that is useful for comparison/diffing of database schemas"
url="http://www.apgdiff.com/"
depends=('jre11-openjdk-headless')
makedepends=('maven')
arch=('any')
source=(
  'apgdiff'
  "https://www.apgdiff.com/download/$pkgname-$pkgver-src.zip"
)
sha256sums=(
  '83a43b2759e0dc7ec3c4433ec09aef3aae83bdb3f88321d2578bd35b2ab1119f'
  '8551a3e10c7aae3a04efc5dad655575484b63a3323f07db5e81c50b42d88129c'
)

build() {
  cd "$pkgname-$pkgver"

  export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
  export MAVEN_OPTS="-Dmaven.repo.local=$srcdir/.m2"

  mvn package
}

package() {
  install -Dm 644 \
    "$pkgname-$pkgver/target/apgdiff-$pkgver.jar" \
    "$pkgdir/usr/share/apgdiff/apgdiff-$pkgver.jar"

  install -Dm 755 apgdiff "$pkgdir/usr/bin/apgdiff"
}