upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / bash-preexec / trunk / PKGBUILD
blob0e066d2f6429423ea5cbc37ca11c3ae979f2111e
1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
2 # Contributor: Quentin Bouvet <qbouvet at outlook dot com>
4 pkgname=bash-preexec
5 pkgver=0.5.0
6 pkgrel=1
7 pkgdesc="preexec and precmd functions for Bash just like Zsh"
8 arch=('any')
9 url="https://github.com/rcaloras/bash-preexec"
10 license=('MIT')
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')
18 prepare() {
19   cd "$pkgname-$pkgver"
20   patch -Np1 -i "../$pkgname-$pkgver-tests.patch"
23 check() {
24   cd "$pkgname-$pkgver/test"
25   bats .
28 package() {
29   cd "$pkgname-$pkgver"
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: