summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b769b734187e8354e105872ce7741b736e131c1 (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
33
34
35
36
37
38
39
40
# Maintainer: Sabu Siyad <hello at ssiyad dot com>
# This PKGBUILD is maintained at https://github.com/ssiyad/pkgbuilds/

pkgname=zsh-plugin-wd
_pkgname=wd
pkgver=0.5.1
pkgrel=1
pkgdesc="Jump to custom directories in zsh"
arch=('x86_64')
url="https://github.com/mfaerevaag/wd"
license=("MIT")
depends=("zsh")
provides=("$pkgname")
conflicts=(
    "${pkgname%-git}"
    "$pkgname"
)
source=(
    "$_pkgname::${url}/archive/refs/tags/v${pkgver}.zip"
)
sha256sums=("1b89eba72840c17fdc42899f2269a25a442c56baad6f13b44278f866806a475f")

install=$pkgname.install

prepare() {
    mkdir -p $pkgdir/usr/share/$_pkgname $pkgdir/usr/share/man/man1 $pkgdir/usr/share/licenses/$pkgname $pkgdir/usr/share/zsh/site-functions
}

build() {
    cd $srcdir/$_pkgname-$pkgver
    gzip -f wd.1
}

package() {
    cd $srcdir/$_pkgname-$pkgver
    install -Dm755 wd.sh $pkgdir/usr/share/$_pkgname/wd.sh
    install -Dm755 wd.1.gz $pkgdir/usr/share/man/man1/wd.1.gz
    install -Dm755 LICENSE $pkgdir/usr/share/licenses/$pkgname
    install -Dm755 _wd.sh $pkgdir/usr/share/zsh/site-functions/_wd
}