aboutsummaryrefslogtreecommitdiffstats
path: root/testing/liquibase/APKBUILD
blob: 1562656b9c2eaef76210981ede663981c3271124 (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
37
38
39
40
41
42
43
44
# Contributor: Curt Tilmes <Curt.Tilmes@nasa.gov>
# Maintainer: Curt Tilmes <Curt.Tilmes@nasa.gov>
pkgname=liquibase
pkgver=3.6.2
pkgrel=0
pkgdesc="Source Control for your Database"
url="http://www.liquibase.org/"
arch="noarch"
license="Apache-2.0"
depends="openjdk8-jre bash"
makedepends=""
install=""
subpackages="$pkgname-doc"
source="https://github.com/liquibase/liquibase/releases/download/liquibase-parent-${pkgver}/liquibase-${pkgver}-bin.tar.gz"
builddir="$srcdir"

build() {
	cd "$builddir"
	mv sdk/lib-sdk/slf4j-api-1.7.25.jar lib
}

check() {
	cd "$builddir"
	./liquibase --version
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/share/"$pkgname"
	for file in lib liquibase liquibase.jar sdk; do
		cp -r $file "$pkgdir"/usr/share/"$pkgname"
	done
	mkdir -p "$pkgdir"/usr/bin
	ln -s /usr/share/liquibase/liquibase "$pkgdir"/usr/bin/liquibase
}

doc() {
	cd "$builddir"
	mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"
	for file in LICENSE.txt README.txt; do
		cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname"
	done
}
sha512sums="66404f18a2790ff8341ad5ccc493b9ee49e4d382c4ec4b2ebc7b74db35a2c332b4b0e7f62fd848ad75b0bfff1f74a82a8143e723048cd4e26632af2f7f2e5eb0  liquibase-3.6.2-bin.tar.gz"