diff options
author | Anjandev Momi <anjan@momi.ca> | 2020-05-03 02:25:11 -0700 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-05-03 22:56:34 +0000 |
commit | 93451e3aed586e302f9f3063da5d4c0b4aeff4ba (patch) | |
tree | 4907d18c2a7be3e4c686148bf6610681f0bb6f28 /community | |
parent | 885a44936ac3378643e7b47573cfa0122e1245e5 (diff) | |
download | aports-93451e3aed586e302f9f3063da5d4c0b4aeff4ba.tar.bz2 aports-93451e3aed586e302f9f3063da5d4c0b4aeff4ba.tar.xz |
community/polybar: move from testing
Diffstat (limited to 'community')
-rw-r--r-- | community/polybar/APKBUILD | 88 | ||||
-rw-r--r-- | community/polybar/fix-wstringop-truncation.patch | 11 | ||||
-rw-r--r-- | community/polybar/polybar.post-install | 4 |
3 files changed, 103 insertions, 0 deletions
diff --git a/community/polybar/APKBUILD b/community/polybar/APKBUILD new file mode 100644 index 0000000000..a79c30c95c --- /dev/null +++ b/community/polybar/APKBUILD @@ -0,0 +1,88 @@ +# Contributor: Taner Tas <taner76@gmail.com> +# Maintainer: Taner Tas <taner76@gmail.com> +pkgname=polybar +pkgver=3.4.2 +pkgrel=1 +pkgdesc="A fast and easy-to-use tool for creating status bars." +url="https://polybar.github.io/" +arch="all" +license="MIT" +makedepends=" + alsa-lib-dev + cairo-dev + cmake + curl-dev + i3wm-dev + jsoncpp-dev + libmpdclient-dev + libnl3-dev + libxcb-dev + pulseaudio-dev + python3 + xcb-proto + xcb-util-cursor-dev + xcb-util-image-dev + xcb-util-renderutil-dev + xcb-util-wm-dev + xcb-util-xrm-dev + " +subpackages=" + $pkgname-doc + $pkgname-bash-completion:bashcomp:noarch + $pkgname-zsh-completion:zshcomp:noarch + " +install=" + $pkgname.post-install + " +_xppver="c5036690ada6695e187722e66f66eb1178d076ba" +_i3ipcppver="0.7.1" +source=" + $pkgname-$pkgver.tar.gz::https://github.com/jaagr/polybar/archive/$pkgver.tar.gz + xpp-$_xppver.tar.gz::https://github.com/jaagr/xpp/archive/$_xppver.tar.gz + https://github.com/jaagr/i3ipcpp/archive/v$_i3ipcppver.tar.gz + fix-wstringop-truncation.patch + " +options="!check" # No test suite + +prepare() { + mkdir -p build + rm -rf lib/xpp + mv "$srcdir"/xpp-$_xppver lib/xpp + rm -rf lib/i3ipcpp + mv "$srcdir"/i3ipcpp-$_i3ipcppver lib/i3ipcpp + default_prepare +} + +build() { + cd "$builddir"/build + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None .. + cmake --build . +} + +package() { + cd "$builddir"/build + cmake --build . --target install -- DESTDIR="$pkgdir" +} + +bashcomp() { + pkgdesc="Bash completion for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + mkdir -p "$subpkgdir"/usr/share/ + mv "$pkgdir"/usr/share/bash-completion \ + "$subpkgdir"/usr/share/ +} + +zshcomp() { + pkgdesc="Zsh completion for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + mkdir -p "$subpkgdir"/usr/share/ + mv "$pkgdir"/usr/share/zsh \ + "$subpkgdir"/usr/share/ +} + +sha512sums="2205847ebc03040e8d2a2581d2c70e940157c5dba71e0c2d086c0f0971a6ffd83c42846a85dd93165512f35710e3f3af8b4494bcd695f71ef0ac501f74753dfd polybar-3.4.2.tar.gz +f4d25a911cc7219ebf35b4b7f63d180a4151f30c8147b38aa1adb2af7ce99b3a4641bbd690f6ccf841d855792715fcae50580b402a910ebc6559cacda733e2b2 xpp-c5036690ada6695e187722e66f66eb1178d076ba.tar.gz +ef9f591bb4436916ad038bcb0c15ea3415d1978ff264fb276108ddac89c98515c464fbf252429f6a76589cb78e1434adba2efefb5a844dadad0e261f3806fb72 v0.7.1.tar.gz +5313c9a20b3f56d878dde0b053c8ca689bbbec077b7c7ba47549dac96393de809e14313e76f68b975f334876a472b14a4d82166c10a64623e753007b26e686ca fix-wstringop-truncation.patch" diff --git a/community/polybar/fix-wstringop-truncation.patch b/community/polybar/fix-wstringop-truncation.patch new file mode 100644 index 0000000000..cdf1eac808 --- /dev/null +++ b/community/polybar/fix-wstringop-truncation.patch @@ -0,0 +1,11 @@ +--- a/lib/i3ipcpp/src/ipc-util.cpp ++++ b/lib/i3ipcpp/src/ipc-util.cpp +@@ -34,7 +34,7 @@ + data = new uint8_t[size]; + header = (header_t*)data; + payload = (char*)(data + sizeof(header_t)); +- strncpy(header->magic, g_i3_ipc_magic.c_str(), sizeof(header->magic)); ++ memcpy(header->magic, g_i3_ipc_magic.c_str(), sizeof(header->magic)); + header->size = payload_size; + header->type = 0x0; + } diff --git a/community/polybar/polybar.post-install b/community/polybar/polybar.post-install new file mode 100644 index 0000000000..6fe7c1b819 --- /dev/null +++ b/community/polybar/polybar.post-install @@ -0,0 +1,4 @@ +#!/bin/sh +printf "\n* polybar-doc package includes a sample config file as /usr/share/doc/polybar/config +* In order to use it as a template, copy it as ~/.config/polybar/config +* You may want to install some glyph fonts like font-siji in order to get symbols rendered correctly.\n" |