aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian <sebastian@sebsite.pw>2022-01-23 17:52:05 -0500
committerdispatch <dispatch@listserv.local>2022-01-23 22:55:08 +0000
commit09a9558e2bce3728b70e341f280d2e5fd3b96398 (patch)
treeea47256132d35b17465c1bcd029b25b37b6f44f5
parentb954b18291311eaaf13ba69f3b892fd3ac6b47b0 (diff)
downloadaports-patches/3896.tar.gz
aports-patches/3896.tar.bz2
aports-patches/3896.tar.xz
community/sway: add grimshot subpackagepatches/3896
Signed-off-by: Sebastian <sebastian@sebsite.pw>
-rw-r--r--community/sway/APKBUILD16
1 files changed, 15 insertions, 1 deletions
diff --git a/community/sway/APKBUILD b/community/sway/APKBUILD
index 64ac484dbf..50faf8a67c 100644
--- a/community/sway/APKBUILD
+++ b/community/sway/APKBUILD
@@ -4,7 +4,7 @@
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=sway
pkgver=1.7
-pkgrel=0
+pkgrel=1
pkgdesc="i3 compatible window manager for Wayland"
url="https://swaywm.org"
arch="all"
@@ -35,6 +35,7 @@ subpackages="
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
+ grimshot::noarch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/swaywm/sway/archive/$pkgver.tar.gz
sway.desktop
@@ -51,6 +52,11 @@ package() {
install -D -m644 "$srcdir"/sway.desktop \
"$pkgdir"/usr/share/wayland-sessions/sway.desktop
+ install -D -m755 contrib/grimshot \
+ "$pkgdir"/usr/bin/grimshot
+ install -D -m644 contrib/grimshot.1 \
+ "$pkgdir"/usr/share/man/man1/grimshot.1
+
# move fish completion files where they are expected
mv "$pkgdir"/usr/share/fish/vendor_completions.d "$pkgdir"/usr/share/fish/completions
}
@@ -63,6 +69,14 @@ wallpapers() {
amove usr/share/backgrounds
}
+grimshot() {
+ pkgdesc="A helper for screenshots within Sway"
+ depends="grim jq libnotify slurp sway wl-clipboard"
+
+ mkdir -p "$subpkgdir"/usr/bin/
+ mv "$pkgdir"/usr/bin/grimshot "$subpkgdir"/usr/bin/
+}
+
sha512sums="
028cf5d504d5914bfb78d44156d6a290de660c5ed0638f4e2c56e5be76db9b0baeda035e1fa1ae23559016bd7e4312f7ff70c2fb4904df25358577c1a3d21243 sway-1.7.tar.gz
c9bc08fbd9d059c037ad1e3b7ab5e91bcde27dce248cc558c1f126b01c85b1d0d4ed4bb10e3f27bc818a06e60a81f19478b95529d4eeb32036e2c6ea9f29db36 sway.desktop