testing/libcypher-parser: update to version 0.6.0

This commit is contained in:
Chris Leishman 2017-11-13 23:02:11 -05:00 committed by Timo Teräs
parent bb57af58ec
commit 329d226ef4

View File

@ -1,7 +1,7 @@
# Contributor: Chris Leishman <chris@leishman.org> # Contributor: Chris Leishman <chris@leishman.org>
# Maintainer: Chris Leishman <chris@leishman.org> # Maintainer: Chris Leishman <chris@leishman.org>
pkgname=libcypher-parser pkgname=libcypher-parser
pkgver=0.5.1 pkgver=0.6.0
pkgrel=0 pkgrel=0
pkgdesc="Parsing library for the Cypher query language" pkgdesc="Parsing library for the Cypher query language"
url="https://github.com/cleishm/libcypher-parser" url="https://github.com/cleishm/libcypher-parser"
@ -11,7 +11,7 @@ depends=""
depends_dev="" depends_dev=""
makedepends="$depends_dev automake autoconf libtool check-dev doxygen pkgconfig" makedepends="$depends_dev automake autoconf libtool check-dev doxygen pkgconfig"
install="" install=""
subpackages="$pkgname-dev $pkgname-doc cypher-lint cypher-lint-doc" 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" source="https://github.com/cleishm/libcypher-parser/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/"$pkgname-$pkgver" _builddir="$srcdir"/"$pkgname-$pkgver"
@ -21,10 +21,14 @@ build() {
--prefix=/usr \ --prefix=/usr \
|| return 1 || return 1
make || return 1 make || return 1
make check || return 1
make doc || return 1 make doc || return 1
} }
check() {
cd "$_builddir"
make check || return 1
}
package() { package() {
cd "$_builddir" cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
@ -35,13 +39,12 @@ package() {
doc() { doc() {
depends="$depends_doc" depends="$depends_doc"
pkgdesc="$pkgdesc (documentation)" pkgdesc="$pkgdesc (documentation)"
arch=${arch_doc:-"noarch"}
install_if="docs $pkgname=$pkgver-r$pkgrel" install_if="docs $pkgname=$pkgver-r$pkgrel"
if [ "X$subpkgname" = "Xlibcypher-parser-doc" ]; then if [ "$subpkgname" = "libcypher-parser-doc" ]; then
mkdir -p "$subpkgdir"/usr/share mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/doc "$subpkgdir"/usr/share/ mv "$pkgdir"/usr/share/doc "$subpkgdir"/usr/share/
elif [ "X$subpkgname" = "Xcypher-lint-doc" ]; then elif [ "$subpkgname" = "cypher-lint-doc" ]; then
mkdir -p "$subpkgdir"/usr/share mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/man "$subpkgdir"/usr/share/ mv "$pkgdir"/usr/share/man "$subpkgdir"/usr/share/
find "$subpkgdir"/usr/share/man/ -type f | xargs gzip -9 find "$subpkgdir"/usr/share/man/ -type f | xargs gzip -9
@ -50,7 +53,7 @@ doc() {
fi fi
# remove if empty, ignore error (not empty) # remove if empty, ignore error (not empty)
rmdir -f "$pkgdir"/usr/share "$pkgdir"/usr || true 2>/dev/null rmdir "$pkgdir"/usr/share "$pkgdir"/usr || true 2>/dev/null
return 0 return 0
} }
@ -64,6 +67,5 @@ lint() {
rmdir "$pkgdir"/usr/bin "$pkgdir"/usr || true 2>/dev/null rmdir "$pkgdir"/usr/bin "$pkgdir"/usr || true 2>/dev/null
return 0 return 0
} }
md5sums="c4c9a3bd9a97f4d97c1ffeb1ff19ebbe libcypher-parser-0.5.1.tar.gz"
sha256sums="bc9e3234e97b2e7c5829bfe17ed9e2f6a619a2e66144b6db7a6082e697441ead libcypher-parser-0.5.1.tar.gz" sha512sums="5faabbfe09a98ad5805a533dfdf1ba3e3357d4320a274242472ef27fc3696d48a4b0bad1606ab6092aae111fc1d7f7c9c3fa875433d6c94bc1e03f2428ca889e libcypher-parser-0.6.0.tar.gz"
sha512sums="632d65741332cc81cb42bbf61f53074677d81db27b6a8f2ce9f44fa04f82f16fd13b78c1ed34518124f7e10b77dc87fa3d4f791d19e076c6dc668b89faa82a56 libcypher-parser-0.5.1.tar.gz"