aboutsummaryrefslogtreecommitdiffstats
path: root/testing/liquibase/APKBUILD
blob: 7d6282adcca469c70484eea4419b3a3346ee5bd0 (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
45
# Contributor: Curt Tilmes <Curt.Tilmes@nasa.gov>
# Maintainer: Curt Tilmes <Curt.Tilmes@nasa.gov>
pkgname=liquibase
pkgver=3.6.1
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="7a35b9c1d9d783266ff5c109a1f5c8aaeae4dfef74e8d8de2a636f992933791c33164f2507542b601acb23e311aad61ec77ed84351ce93f262519b0113ca6b94  liquibase-3.6.1-bin.tar.gz"