Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/polybar: new aport

From: Daniel Isaksen <d_at_duniel.no>
Date: Sun, 22 Apr 2018 20:20:29 +0000

Please do review / skim the patch, this *might* have some minor issues.

- Daniel

---
 testing/polybar/APKBUILD | 53 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 testing/polybar/APKBUILD
diff --git a/testing/polybar/APKBUILD b/testing/polybar/APKBUILD
new file mode 100644
index 0000000000..4ff5f6cab5
--- /dev/null
+++ b/testing/polybar/APKBUILD
_at_@ -0,0 +1,53 @@
+# Maintainer: Daniel Isaksen <d_at_duniel.no>
+# Contributor: Daniel Isaksen <d_at_duniel.no>
+
+# TODO: split plugins and extensions up into separate packages
+# TODO: build all of the aforementioned plugins and extensions
+
+pkgname=polybar
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="A fast and easy-to-use status bar"
+url="https://github.com/jaagr/polybar"
+arch="all"
+license="MIT"
+depends=""
+makedepends="cmake git python3 python2 pkgconf-dev cairo-dev xcb-util-image-dev
+	     xcb-util-wm-dev xcb-util-xrm xcb-util-cursor xcb-proto"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/jaagr/polybar/archive/3.1.0.zip
+	xpp-1.4.0.tar.gz::https://github.com/jaagr/xpp/archive/1.4.0.tar.gz"
+builddir="$srcdir"/"$pkgname-$pkgver"
+
+prepare() {
+	cd "$builddir"/lib
+
+	# TODO: change this?
+	rm -r xpp
+	cp -r "$srcdir"/xpp-1.4.0 xpp
+}
+
+build() {
+	cd "$builddir"
+
+	cmake -DCMAKE_INSTALL_PREFIX="/usr" .
+	cmake --build .
+}
+
+check() {
+	cd "$builddir"
+
+	# TODO: this is a bad test
+	./bin/polybar -v >/dev/null 2>&1
+}
+
+package() {
+	cd "$builddir"
+
+	cmake --build . --target install -- DESTDIR="$pkgdir"
+
+	install -Dm644 "$builddir"/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+}
+
+sha512sums="6d8759d9f750c2abfa79fe735615b0ed3d1827e3a88561317712c6f02cb32a0a77726f97cb419f3a040ae9085a34a23cb1aad0aacf3f14e56c542977b89036b2  polybar-3.1.0.tar.gz
+d34cbbe2391db36db7dffac0415d26b7487536e97c4d7efd472ab0aeffa4c8e757ee030b05e2aa1cfa8a591ee591bb96a6db7eb9fa5850027f958e92f078739c  xpp-1.4.0.tar.gz"
-- 
2.17.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sun Apr 22 2018 - 20:20:29 GMT