Subject: [PATCH 1/3] testing/bemenu: update to 0.1.0_git20190807

From: Cosmo Borsky <[email-masked]>
Date: Mon, 12 Aug 2019 14:36:14 +0000

bemenu's git master introduces some bug fixes and features, along
with man pages. along with the version bump, subpackages were added
for the development headers and docs, and doxygen is used to build
development documentation.
---
 testing/bemenu/APKBUILD | 27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)

diff --git a/testing/bemenu/APKBUILD b/testing/bemenu/APKBUILD
index 67901d4946..3d92c13250 100644
--- a/testing/bemenu/APKBUILD
+++ b/testing/bemenu/APKBUILD
@@ -1,21 +1,40 @@
 # Contributor: Cosmo Borsky <[email-masked]>
 # Maintainer: Cosmo Borsky <[email-masked]>
 pkgname="bemenu"
-pkgver="0.1.0"
+pkgver="0.1.0_git20190807"
+_commit="442d2833f48590122e5ce54a2bca3a327ffa0311"
 pkgrel=0
 pkgdesc="Dynamic menu library and client program inspired by dmenu with support for wayland compositors"
 url="https://github.com/Cloudef/bemenu"
 arch="x86_64"
 license="GPL-3.0-or-later AND LGPL-3.0-or-later"
 depends_dev="libxkbcommon-dev libxinerama-dev ncurses-dev wayland-dev pango-dev"
+depends_doc="doxygen graphviz"
 makedepends="cmake $depends_dev"
-source="bemenu-$pkgver.tar.gz::https://github.com/Cloudef/bemenu/archive/$pkgver.tar.gz"
+subpackages="$pkgname-doc $pkgname-dev"
+options="!check"  # no test suite available at this time
+source="bemenu-$_commit.zip::https://github.com/Cloudef/bemenu/archive/$_commit.zip"
+builddir="$srcdir/bemenu-$_commit"
 
 build() {
-	cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib
+	cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
+		-DBEMENU_WAYLAND_RENDERER=ON \
+		-DBEMENU_CURSES_RENDERER=ON \
+		-DBEMENU_X11_RENDERER=ON
 	make
 }
 
+doc() {
+	default_doc
+
+	cd "$builddir"  # move from pkgdir to builddir
+	make doxygen
+	mkdir -p "$subpkgdir"/usr/share/doc/bemenu
+	cp -r "$builddir"/doxygen/html "$subpkgdir"/usr/share/doc/bemenu/html
+}
+
 check() {
 	make test
 }
@@ -24,4 +43,4 @@ package() {
 	make DESTDIR="$pkgdir" install
 }
 
-sha512sums="309d58bed4c46b07c856d951a52c7f13adea560aefc921c96c79418424985bcb0e6b5b72c482186f4c42ab754d67c33002bf41f813761afa724ccc410246af3a  bemenu-0.1.0.tar.gz"
+sha512sums="8ccc15b11ddb6b8330d3eab1d4674e0cd4a8d7911ad8201eafee6f85e493df4ad8a5ff7f7a643cf3ab763421dfad912690ede966ec079268c0da31c3482931d4  bemenu-442d2833f48590122e5ce54a2bca3a327ffa0311.zip"
-- 
2.22.0