From 4ce0e9375ef56045324d6c2d72fbfb25dcd05cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Tue, 6 Feb 2018 16:04:06 +0000 Subject: [PATCH] testing/libcypher-parser: modernize --- testing/libcypher-parser/APKBUILD | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/testing/libcypher-parser/APKBUILD b/testing/libcypher-parser/APKBUILD index 79be7fc4e75..ba7893eb9ea 100644 --- a/testing/libcypher-parser/APKBUILD +++ b/testing/libcypher-parser/APKBUILD @@ -14,24 +14,23 @@ install="" subpackages="$pkgname-dev $pkgname-doc::noarch cypher-lint cypher-lint-doc::noarch" source="https://github.com/cleishm/libcypher-parser/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/"$pkgname-$pkgver" +builddir="$srcdir"/"$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ - --prefix=/usr \ - || return 1 - make || return 1 - make doc || return 1 + --prefix=/usr + make + make doc } check() { - cd "$_builddir" - make check || return 1 + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/usr/share/doc/libcypher-parser mv doc/html/* "$pkgdir"/usr/share/doc/libcypher-parser/ }