blob: 62bec5649d57b71ae61c64175cd3922c46c755af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Yusuf Aktepe <yusuf@yusufaktepe.com>
_name=zsh-system-clipboard
pkgname="${_name}-git"
pkgver=r128.2d94918
pkgrel=1
pkgdesc='Synchronize system clipboard with ZLE (Zsh Line Editor) registers'
arch=('any')
url="https://github.com/kutsan/zsh-system-clipboard"
license=('GPL3')
depends=('zsh')
makedepends=('git')
optdepends=(
'xclip: clipboard utility'
'xsel: clipboard utility'
)
install="${pkgname}.install"
source=("${_name}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${_name}"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${_name}"
install -vDm644 "${_name}.zsh" -t "$pkgdir/usr/share/zsh/plugins/${_name}"
ln -sv "${_name}.zsh" "$pkgdir/usr/share/zsh/plugins/${_name}/${_name}.plugin.zsh" # symlink for oh-my-zsh
install -vDm644 README.md -t "$pkgdir/usr/share/doc/${_name}"
install -vDm644 LICENSE -t "$pkgdir/usr/share/licenses/${_name}"
}
|