summaryrefslogtreecommitdiff
path: root/libre/sh-roundup/PKGBUILD
blob: cc614c0d99f45a2b8be3e07b0eb960b35b1931df (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=sh-roundup
_pkgname="roundup"
pkgver=0.0.6
pkgrel=1
pkgdesc='A unit testing framework for POSIX shell'
arch=('any')
url="http://bmizerany.github.io/roundup/"
license=("custom:MIT")
depends=(sh)
makedepends=(ruby-ronn)

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bmizerany/$_pkgname/archive/v$pkgver.tar.gz"
        'makefile-fix.patch')
md5sums=('607023b4fe4e42fdc2f0cb14b4138b2e'
         '9efcd83d666c1e84302fe611610c60fa')

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
}