1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
2 # Contributor: Quentin Bouvet <qbouvet at outlook dot com>
7 pkgdesc="preexec and precmd functions for Bash just like Zsh"
9 url="https://github.com/rcaloras/bash-preexec"
11 makedepends=('bash-bats')
12 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
13 "$pkgname-$pkgver-tests.patch::$url/commit/a44754f5c3ca76b0330324680670cb8574d2768f.patch")
14 install=$pkgname.install
15 sha256sums=('23c589cd1da209c0598f92fac8d81bb11632ba1b2e68ccaf4ad2c4f3204b877c'
16 'db9e914aa8cb27883c9ba100ff8b38080f9108fd6f438764b9ae1ca4ae2d17bf')
20 patch -Np1 -i "../$pkgname-$pkgver-tests.patch"
24 cd "$pkgname-$pkgver/test"
30 install -Dm 755 "${pkgname}.sh" -t "$pkgdir/usr/share/$pkgname"
31 install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
32 install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
35 # vim:set ts=2 sw=2 et: