summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14b8abd6aeb3bf2cff6352d1f5e61b79ac215630 (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
# Maintainer: Jonathan Sumner Evans <sumner.evans98@gmail.com>

pkgname="zsh-you-should-use"
pkgver=0.4.2
pkgrel=1
pkgdesc="ZSH plugin that reminds you to use existing aliases for commands you just typed"
url="https://github.com/MichaelAquilina/zsh-you-should-use"
arch=("any")
license=("GPL3")
source=("https://github.com/MichaelAquilina/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=("5db7415e16c914fb38e4dc48e4d17f5d4ac5ac5c38135484cf98d4dc31fb6338")

package() {
    install -d "${pkgdir}/usr/share/zsh/plugins/${pkgname}"
    install -Dm644 "${srcdir}/${pkgname}-${pkgver}/you-should-use.plugin.zsh" \
        "${pkgdir}/usr/share/zsh/plugins/${pkgname}"

    # License
    install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \
        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

post_install() {
    cat << EOF
To activate zsh-you-should-use add the following line at the end of ~/.zshrc:
    source /usr/share/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh
EOF
}