summaryrefslogtreecommitdiff
path: root/libre/sh-roundup/PKGBUILD
blob: 10fdff64507ed9727d0b489762332049c30cb171 (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

pkgname=sh-roundup
pkgver=0.0.5.git17
_gitver='commit=695ae7609353a360556e1f465ac81ce447235179'

pkgdesc='A unit testing framework for POSIX shell'
license=("custom:MIT")
url="http://bmizerany.github.io/roundup/"

pkgrel=2
arch=('any')
depends=(sh)
makedepends=(ronn)

source=("https://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz" 'makefile-fix.patch')
md5sums=('053754e0a450288710bde0b9e5deb67e'
         '9efcd83d666c1e84302fe611610c60fa')

mksource=("$pkgname-$pkgver::git://github.com/bmizerany/roundup.git#${_gitver}")
mkmd5sums=('SKIP')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -i ../makefile-fix.patch Makefile
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix="$pkgdir"/usr
  make -j1 build man
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make -j1 install install-man
  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}