summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Poldrack2020-11-17 14:00:31 +0100
committerMoritz Poldrack2020-11-17 14:00:31 +0100
commit748ce21194592611de10fb001283795291592880 (patch)
tree09d7a9edf7faae99f286b5939fee9b71fa783be5
downloadaur-748ce21194592611de10fb001283795291592880.tar.gz
initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD50
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..af8c3bc4247
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = yambar
+ pkgdesc = Modular status panel for X11 and Wayland, inspired by polybar
+ pkgver = 1.5.0
+ pkgrel = 1
+ url = https://codeberg.org/dnkl/yambar
+ arch = x86_64
+ license = MIT
+ makedepends = ninja
+ makedepends = meson
+ makedepends = cmake
+ depends = xcb-util-cursor
+ provides = yambar
+ source = yambar-1.5.0.tar.gz::https://codeberg.org/dnkl/yambar/archive/1.5.0.tar.gz
+ md5sums = eed0ff5c884d8019116549e8305c3ed1
+
+pkgname = yambar
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..794343d80bd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Moritz Poldrack <moritz at poldrack dot dev>
+pkgname=yambar
+pkgver=1.5.0
+pkgrel=1
+pkgdesc='Modular status panel for X11 and Wayland, inspired by polybar'
+arch=('x86_64')
+url='https://codeberg.org/dnkl/yambar'
+license=('MIT')
+depends=(
+ 'xcb-util-cursor'
+)
+makedepends=(
+ 'ninja'
+ 'meson'
+ 'cmake'
+)
+provides=('yambar')
+source=("${pkgname}-${pkgver}.tar.gz::https://codeberg.org/dnkl/${pkgname}/archive/${pkgver}.tar.gz")
+md5sums=('eed0ff5c884d8019116549e8305c3ed1')
+
+prepare() {
+ rm -rf "${srcdir}"
+ mkdir -p "${srcdir}"
+ bsdtar -xf "../${pkgname}-${pkgver}.tar.gz" -C "${srcdir}"
+
+ cd yambar
+
+ mkdir subprojects
+ pushd subprojects
+ git clone https://codeberg.org/dnkl/tllist.git
+ git clone https://codeberg.org/dnkl/fcft.git
+ popd
+
+# sed -ie 's/false/true/' meson_options.txt
+
+mkdir -p bld/release && cd bld/release
+meson --buildtype=release --prefix=${pkgdir}/usr/local/ ../..
+}
+
+build() {
+ cd "${srcdir}/yambar/bld/release"
+ ninja
+}
+
+package() {
+ cd "${srcdir}/yambar/bld/release"
+ ninja install
+
+ mv "${pkgdir}/usr/local/share/man" "${pkgdir}/usr/local/man"
+}