aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorTaner Tas <taner76@gmail.com>2019-01-05 12:51:59 +0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-03-21 05:55:38 +0000
commit87a7de2b98c8a73c72dacf8c672a0c0ab21520fc (patch)
tree5fdf5f40b04d6805d7723a7ca3dc03e3051ecab9 /testing
parent6b78f2fc7e7c2fa9aa5734a2d9d304b87ba93783 (diff)
downloadaports-87a7de2b98c8a73c72dacf8c672a0c0ab21520fc.tar.bz2
aports-87a7de2b98c8a73c72dacf8c672a0c0ab21520fc.tar.xz
testing/polybar: new aport
https://polybar.github.io/ A fast and easy-to-use tool for creating status bars.
Diffstat (limited to 'testing')
-rw-r--r--testing/polybar/APKBUILD88
-rw-r--r--testing/polybar/polybar.post-install4
2 files changed, 92 insertions, 0 deletions
diff --git a/testing/polybar/APKBUILD b/testing/polybar/APKBUILD
new file mode 100644
index 0000000000..52c708034c
--- /dev/null
+++ b/testing/polybar/APKBUILD
@@ -0,0 +1,88 @@
+# Contributor: Taner Tas <taner76@gmail.com>
+# Maintainer: Taner Tas <taner76@gmail.com>
+pkgname=polybar
+pkgver=3.3.0
+pkgrel=0
+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
+ jsoncpp-dev
+ libmpdclient-dev
+ libnl3-dev
+ libxcb-dev
+ pulseaudio-dev
+ python2
+ 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="56fbf8459809ba65f9ea4a65b8f467a6e9890c4e"
+_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
+ "
+builddir="$srcdir/$pkgname-$pkgver"
+options="!check" # No test suite
+
+prepare() {
+ cd "$builddir"
+ 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 ..
+ 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="59b6ef2509fae8c520ad4dd176f642c79891ce069946c3ae84559de76710e586c669d0a03d49535ccdbcfdef40fe685f3e02d15bee95138dd0e2b212a64d0403 polybar-3.3.0.tar.gz
+22581067ddda3ac75ef2747d77ab7fc2ea228da3cd6f974533e4e2777beaacd4ca0618b8ee53ba26dd319ffeed0b317d10ca99b5a2769b9bc92841f619d3c33c xpp-56fbf8459809ba65f9ea4a65b8f467a6e9890c4e.tar.gz
+ef9f591bb4436916ad038bcb0c15ea3415d1978ff264fb276108ddac89c98515c464fbf252429f6a76589cb78e1434adba2efefb5a844dadad0e261f3806fb72 v0.7.1.tar.gz"
diff --git a/testing/polybar/polybar.post-install b/testing/polybar/polybar.post-install
new file mode 100644
index 0000000000..6fe7c1b819
--- /dev/null
+++ b/testing/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"