# Maintainer: Maksim Bondarenkov <maksapple2306@gmail.com>

pkgname=bash-preexec
pkgver=0.7.0
pkgrel=1
pkgdesc="preexec and precmd functions for Bash just like Zsh"
arch=('any')
url="https://github.com/rcaloras/bash-preexec"
license=('spdx:MIT')
source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
install=${pkgname}.install
sha256sums=('f3d5698bde8533e9622b2ee2dcb0dd12e772d85018f4770a8899887ef6cd36a0')

package() {
  cd "${pkgname}-${pkgver}"
  install -Dm755 "${pkgname}.sh" -t "${pkgdir}/usr/share/${pkgname}"
  install -Dm644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
