diff --git a/community/grantlee-qt5/APKBUILD b/community/grantlee-qt5/APKBUILD
new file mode 100644
index 0000000000000000000000000000000000000000..ad77339aa5e20544d02d3d9e845f2ebcb77870d3
--- /dev/null
+++ b/community/grantlee-qt5/APKBUILD
@@ -0,0 +1,47 @@
+maintainer="Bart Ribbers <bribbers@disroot.org>"
+pkgname=grantlee-qt5
+pkgver=5.3.1
+pkgrel=0
+pkgdesc="A string template engine based on the Django template system and written in Qt"
+# armhf blocked by qt5-qtdeclarative
+arch="all !armhf"
+url="https://github.com/steveire/grantlee"
+license="LGPL-2.1-or-later"
+depends_dev="
+	graphviz-dev
+	qt5-qtbase-dev
+	qt5-qtdeclarative-dev
+	"
+makedepends="$depends_dev
+	cmake
+	doxygen
+	graphviz
+	samurai
+	"
+checkdepends="xwayland-run"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://github.com/steveire/grantlee/releases/download/v$pkgver/grantlee-$pkgver.tar.gz"
+builddir="$srcdir/grantlee-$pkgver"
+
+build() {
+	cmake -B build -G Ninja \
+		-DCMAKE_BUILD_TYPE=MinSizeRel \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DGRANTLEE_BUILD_WITH_QT6=OFF
+	cmake --build build
+	ninja -C build docs
+}
+
+check() {
+	# testfilters is broken
+	xwfb-run -- ctest --test-dir build -E "test(filters|builtins)"
+}
+
+package() {
+	DESTDIR="$pkgdir" cmake --install build
+	install -Dm644 build/apidox/* -t "$pkgdir"/usr/share/doc/$pkgname
+}
+
+sha512sums="
+dc7192fe0553954fffc3e2c584e4fdd80fc1f22d25846cacc5f2dcd1db2673ca62464c8492a4ed3bfc9dfc3e62ef13322809dd29bd56fa4a3a153a8d373ddde5  grantlee-5.3.1.tar.gz
+"