[arch-commits] Commit in plasma5-applets-window-buttons/repos (2 files)

2021-10-15 Thread Antonio Rojas via arch-commits
Date: Friday, October 15, 2021 @ 14:48:06
  Author: arojas
Revision: 1030269

archrelease: copy trunk to community-testing-x86_64

Added:
  plasma5-applets-window-buttons/repos/community-testing-x86_64/
  plasma5-applets-window-buttons/repos/community-testing-x86_64/PKGBUILD
(from rev 1030268, plasma5-applets-window-buttons/trunk/PKGBUILD)

--+
 PKGBUILD |   30 ++
 1 file changed, 30 insertions(+)

Copied: plasma5-applets-window-buttons/repos/community-testing-x86_64/PKGBUILD 
(from rev 1030268, plasma5-applets-window-buttons/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-10-15 14:48:06 UTC (rev 1030269)
@@ -0,0 +1,30 @@
+# Maintainer: Antonio Rojas 
+
+pkgname=plasma5-applets-window-buttons
+pkgver=0.9.0
+pkgrel=2
+pkgdesc='Plasma 5 applet in order to show window buttons in your panels'
+arch=(x86_64)
+url='https://github.com/psifidotos/applet-window-buttons'
+license=(GPL)
+depends=(plasma-workspace)
+makedepends=(extra-cmake-modules)
+conflicts=(libappletdecoration)
+replaces=(libappletdecoration)
+source=(https://github.com/psifidotos/applet-window-buttons/archive/$pkgver/$pkgname-$pkgver.tar.gz
+
https://github.com/psifidotos/applet-window-buttons/commit/6f881c25.patch)
+sha256sums=('053201441e2cc7c0589c920028b985752ad9a87dc0f7fb35070cf44c9fcfbab7'
+'1db8b6f262f6f6b45c239e11698bfbdfe079b408710a16cc7902c01cf4b46b25')
+
+prepare() {
+  patch -d applet-window-buttons-$pkgver -p1 < 6f881c25.patch # Plasma 5.23 
compatibility
+}
+
+build() {
+  cmake -B build -S applet-window-buttons-$pkgver
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+}



[arch-commits] Commit in plasma5-applets-window-buttons/repos (2 files)

2021-02-16 Thread Antonio Rojas via arch-commits
Date: Tuesday, February 16, 2021 @ 14:49:52
  Author: arojas
Revision: 862299

archrelease: copy trunk to community-testing-x86_64

Added:
  plasma5-applets-window-buttons/repos/community-testing-x86_64/
  plasma5-applets-window-buttons/repos/community-testing-x86_64/PKGBUILD
(from rev 862298, plasma5-applets-window-buttons/trunk/PKGBUILD)

--+
 PKGBUILD |   37 +
 1 file changed, 37 insertions(+)

Copied: plasma5-applets-window-buttons/repos/community-testing-x86_64/PKGBUILD 
(from rev 862298, plasma5-applets-window-buttons/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-02-16 14:49:52 UTC (rev 862299)
@@ -0,0 +1,37 @@
+# Maintainer: Antonio Rojas 
+
+pkgbase=plasma5-applets-window-buttons
+pkgname=(libappletdecoration plasma5-applets-window-buttons)
+pkgver=0.8.1
+pkgrel=3
+pkgdesc="Plasma 5 applet in order to show window buttons in your panels"
+arch=(x86_64)
+url="https://github.com/psifidotos/applet-window-buttons;
+license=(GPL)
+makedepends=(extra-cmake-modules kdecoration plasma-framework)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/psifidotos/applet-window-buttons/archive/$pkgver.tar.gz;
+
window-buttons-kdecoration-5.21.patch::"https://github.com/psifidotos/applet-window-buttons/commit/dc5ed862.patch;)
+sha256sums=('9f7afca910072d3e6b23e9aad1bd0905965b2022e0498b43173d7a712cca8986'
+'56ad08f1fcb612bf3aade5047cc346d4560e422946ffeeed962a48c749aa2e73')
+
+prepare() {
+  patch -d applet-window-buttons-$pkgver -p1 < 
window-buttons-kdecoration-5.21.patch # Fix build with kdecoration 5.21
+}
+
+build() {
+  cmake -B build -S applet-window-buttons-$pkgver
+  cmake --build build
+}
+
+package_libappletdecoration() {
+  pkgdesc="Library for applet window decorations"
+  depends=(kdecoration plasma-framework)
+  DESTDIR="$pkgdir" cmake --install build/libappletdecoration
+}
+
+package_plasma5-applets-window-buttons() {
+  depends=(libappletdecoration plasma-workspace)
+  DESTDIR="$pkgdir" cmake --install build
+  rm -r "$pkgdir"/usr/lib # Provided by libappletdecoration
+}
+