blob: 2044e3fa18270801a273327b7bf50c93610d068a (
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
|
# Maintainer: espritlibre <e-mail>
_pkgname=zsh-urltools
pkgname=zsh-urltools-git
pkgver=r7156.06753e814
pkgrel=1
pkgdesc="This plugin provides two aliases: "urlencode" and "urldecode" to decode/encode URL strings."
arch=(any)
url="https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/urltools"
license=('unknown')
depends=("zsh")
makedepends=("git")
install="${pkgname}.install"
source=(git+https://github.com/ohmyzsh/ohmyzsh.git)
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/ohmyzsh/plugins/urltools/"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
install -d "${pkgdir}/usr/share/zsh/plugins/${_pkgname}"
install -Dm644 "${srcdir}/ohmyzsh/plugins/urltools/README.md" \
"${pkgdir}/usr/share/zsh/plugins/${_pkgname}"
install -d "${pkgdir}/usr/share/zsh/plugins/${_pkgname}"
install -Dm644 "${srcdir}/ohmyzsh/plugins/urltools/urltools.plugin.zsh" \
"${pkgdir}/usr/share/zsh/plugins/${_pkgname}"
}
|