Subject: [PATCH] testing/brillo: new aport

From: Cosmo Borsky <[email-masked]>
Date: Sun, 29 Mar 2020 01:09:18 -0400

---
 testing/brillo/APKBUILD | 47 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 testing/brillo/APKBUILD

diff --git a/testing/brillo/APKBUILD b/testing/brillo/APKBUILD
new file mode 100644
index 0000000000..ebd693b5f1
--- /dev/null
+++ b/testing/brillo/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Cosmo Borsky <[email-masked]>
+# Maintainer: Cosmo Borksy <[email-masked]>
+pkgname="brillo"
+pkgver="1.4.9"
+pkgrel=0
+pkgdesc="Control the brightness of backlight and keyboard LED devices on Linux."
+url="https://gitlab.com/cameronnemo/brillo"
+arch="all"
+license="GPL-3.0"
+makedepends="go-md2man"
+subpackages="$pkgname-doc $pkgname-apparmor $pkgname-polkit $pkgname-udev"
+source="https://gitlab.com/cameronnemo/brillo/-/archive/v${pkgver}/brillo-v${pkgver}.tar.gz"
+builddir="$srcdir/brillo-v${pkgver}"
+
+build() {
+	make build
+}
+
+check() {
+	BRILLOBIN="${builddir}/build/brillo"
+}
+
+package() {
+	make install.bin PREFIX="${pkgdir}"
+}
+
+doc() {
+	cd "${builddir}"
+	make install.man PREFIX="${subpkgdir}"
+}
+
+apparmor() {
+	cd "${builddir}"
+	make install.apparmor DESTDIR="${subpkgdir}"
+}
+
+polkit() {
+	cd "${builddir}"
+	make install.polkit PREFIX="${subpkgdir}"
+}
+
+udev() {
+	cd "${builddir}"
+	make install.udev DESTDIR="${subpkgdir}"
+}
+
+sha512sums="444f173bf6d1bcbb1598979e906656adf322e036372ac11553e23152d3bfc3b8c0aa5839e2069e095eafab3993a975e4247418f3828760c9c3cd29a6a092327b  brillo-v1.4.9.tar.gz"
-- 
2.24.1