From b10b4ca868bd0ee296836c32fddc794cd8e8ba1c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 12 Oct 2017 01:07:43 -0500 Subject: user/grantlee: new package --- user/grantlee/APKBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 user/grantlee/APKBUILD (limited to 'user/grantlee') diff --git a/user/grantlee/APKBUILD b/user/grantlee/APKBUILD new file mode 100644 index 000000000..c8cfbec90 --- /dev/null +++ b/user/grantlee/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=grantlee +pkgver=5.1.0 +pkgrel=0 +pkgdesc="Libraries for text templating with Qt" +url="https://github.com/steveire/grantlee/" +arch="all" +license="LGPL-2.1" +depends="" +depends_dev="qt5-qtbase-dev" +makedepends="cmake $depends_dev doxygen graphviz" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="grantlee-$pkgver.tar.gz::https://github.com/steveire/grantlee/archive/v$pkgver.tar.gz" +builddir="$srcdir/grantlee-$pkgver" + +build() { + cd "$builddir" + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} + make all docs +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +doc() { + pkgdesc="$pkgdesc (documentation)" + install_if="docs $pkgname=$pkgver-r$pkgrel" + mkdir -p "$subpkgdir"/usr/share/doc/grantlee + mv "$builddir"/apidox "$subpkgdir"/usr/share/doc/grantlee/ +} + +sha512sums="8a4906979f160abf21481d364f0318789c8b5340c62bff06cc62e6714dbf2c52cbfe577a24490052ac25d94f4cc59e11764204236bc7532bd7f1fd5188baa41a grantlee-5.1.0.tar.gz" -- cgit v1.2.3-70-g09d2