Received: from sebsite.pw (sebsite.pw [71.19.150.50]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id BE47C7810C8 for <~alpine/aports@lists.alpinelinux.org>; Sun, 23 Jan 2022 22:55:05 +0000 (UTC) Received: from localhost.localdomain (unknown [8.9.88.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by sebsite.pw (Postfix) with ESMTPSA id 4C7A3380042; Sun, 23 Jan 2022 22:54:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sebsite.pw; s=sebsite; t=1642978497; bh=hGhL/TGCXoDiT+6QrxocaT3ifN8LCev8FNuJihmpO4U=; h=From:To:Cc:Subject:Date; b=Hw/4FDOsmJLWmPKJC6+zYrIlRc2lp9oXwM9vrUyS2UQmsCpJUsphR0SZbDq0lqUB7 MBCo2GWLePt3RHTmsTsRYN/uEE4XOx+1zxDwNWI+AY3Ft1koM2oo+x0NBJCV2RhQ4A bUPCNJGyH5T87pdH2hpoa4QLVqkAK9bya7Or6v6oPXq0WXTp8EjkpYJJDsbBIeT5YO LF9+jAanwLa/J5QfCrr9sYcAKH+yd6PQjQgcvm2w7uCUh+akNdODx9xBrWLI8rctel f7yKyV4iEKlC0lgmlDgfZ8HnOSWBMI6iBqIANCLWeu6SFueEH0OkQsRVa13QEYLCrm dZmqRMLPc9qcQ== From: Sebastian To: ~alpine/aports@lists.alpinelinux.org Cc: Sebastian Subject: [PATCH v2] community/sway: add grimshot subpackage Date: Sun, 23 Jan 2022 17:52:05 -0500 Message-Id: <20220123225205.12503-1-sebastian@sebsite.pw> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian --- v2 change: bumped pkgrel community/sway/APKBUILD | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/community/sway/APKBUILD b/community/sway/APKBUILD index 64ac484d..50faf8a6 100644 --- a/community/sway/APKBUILD +++ b/community/sway/APKBUILD @@ -4,7 +4,7 @@ # Maintainer: Michał Polański 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 -- 2.34.1