Patches for aports can be sent to this list

1

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

Daniel Isaksen
Details
Message ID
<20180422202029.9355-1-d@duniel.no>
Sender timestamp
1524428429
DKIM signature
missing
Download raw message
Patch: +53 -0
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
@@ -0,0 +1,53 @@
+# Maintainer: Daniel Isaksen <d@duniel.no>
+# Contributor: Daniel Isaksen <d@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@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Leonardo Arena
Details
Message ID
<CAGG_d8CR8k3AyVt-s9xq32Qu2Xi1M0kYzfapbKC2=pxMsDRXLg@mail.gmail.com>
In-Reply-To
<20180422202029.9355-1-d@duniel.no> (view parent)
Sender timestamp
1531908414
DKIM signature
missing
Download raw message
Hi,

sorry for the late review.

On Sun, Apr 22, 2018 at 10:20 PM, Daniel Isaksen <d@duniel.no> wrote:

> 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
>
>

Here it fails to build with:

[  5%] Building CXX object bin/CMakeFiles/polybar-msg.dir/utils/file.cpp.o
Traceback (most recent call last):
  File
"/home/larena/aports/testing/polybar/src/polybar-3.1.0/lib/xpp/generators/cpp_client.py",
line 3163, in <module>
    from xcbgen.state import Module
  File "/usr/lib/python3.6/site-packages/xcbgen/state.py", line 7, in
<module>
    from xcbgen import matcher
  File "/usr/lib/python3.6/site-packages/xcbgen/matcher.py", line 12, in
<module>
    from xcbgen.xtypes import *
  File "/usr/lib/python3.6/site-packages/xcbgen/xtypes.py", line 1221, in
<module>
    class EventStruct(Union):
  File "/usr/lib/python3.6/site-packages/xcbgen/xtypes.py", line 1239, in
EventStruct
    out = __main__.output['eventstruct']
KeyError: 'eventstruct'
make[2]: *** [lib/xpp/CMakeFiles/xpp.dir/build.make:70: lib/xpp/libxpp.a]
Error 1
make[1]: *** [CMakeFiles/Makefile2:400: lib/xpp/CMakeFiles/xpp.dir/all]
Error 2
make[1]: *** Waiting for unfinished jobs....


Thanks

/eo