Skip to content
Snippets Groups Projects
Commit 52fba0b9 authored by Leo's avatar Leo
Browse files

community/gpaste: add bash and zsh completion subpackages

parent fbaa62da
No related branches found
No related tags found
No related merge requests found
......@@ -2,14 +2,21 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gpaste
pkgver=3.36.3
pkgrel=0
pkgrel=1
pkgdesc="Clipboard managment system"
url="https://github.com/Keruspe/GPaste"
arch="all !armhf !s390x !ppc64le !mips !mips64" # limited by gnome-control-center
license="BSD-2-Clause"
makedepends="meson gtk+3.0-dev gnome-control-center-dev dbus-dev mutter-dev
gjs-dev appstream-glib-dev vala"
subpackages="$pkgname-dev $pkgname-lang $pkgname-doc $pkgname-gnome:_gnome"
subpackages="
$pkgname-dev
$pkgname-lang
$pkgname-doc
$pkgname-gnome:_gnome
$pkgname-bash-completion:bashcomp:noarch
$pkgname-zsh-completion:bashcomp:noarch
"
source="gpaste-$pkgver.tar.gz::https://github.com/Keruspe/GPaste/archive/v$pkgver.tar.gz"
builddir="$srcdir/GPaste-$pkgver"
......@@ -42,4 +49,20 @@ _gnome() {
"$subpkgdir"/usr/share
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
amove usr/share/bash-completion/completions
}
zshcomp() {
depends=""
pkgdesc="Zsh completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
amove usr/share/zsh/site-functions
}
sha512sums="e5fe4a31367e96089aefd1af5ed0a3ad591eee009bbc74b1b33c9c736061831979d79f2d6a5c072cf55fc6f1982ade581fe73d2039c5dbd607081683860c7b9f gpaste-3.36.3.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment