diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-06-08 20:44:07 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-06-08 20:44:07 -0300 |
commit | 4ec145ccfc042a78b953357d5fb5f86803463192 (patch) | |
tree | cc0d010ee1488edec38390eadc25ad5c3491e3e1 /libre/sh-roundup | |
parent | f136d6e19bc1c81449405edc1a0de04887d4b5a9 (diff) | |
parent | 9af1e9d623036a1f098f0b6e6c4f22b175c5f23b (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/sh-roundup')
-rw-r--r-- | libre/sh-roundup/PKGBUILD | 44 | ||||
-rw-r--r-- | libre/sh-roundup/makefile-fix.patch | 11 |
2 files changed, 55 insertions, 0 deletions
diff --git a/libre/sh-roundup/PKGBUILD b/libre/sh-roundup/PKGBUILD new file mode 100644 index 000000000..7c17669d3 --- /dev/null +++ b/libre/sh-roundup/PKGBUILD @@ -0,0 +1,44 @@ +# 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=1 +arch=('any') +depends=(sh) +makedepends=(ronn) + +source=("libre://$pkgname-$pkgver.tar.gz" 'makefile-fix.patch') +md5sums=('8b1f85316d178eb9e809e168f52d0f2d' + '9efcd83d666c1e84302fe611610c60fa') + +mksource=("git://github.com/bmizerany/roundup.git#${_gitver}") +mkmd5sums=('SKIP') +mksource() { + cd "$srcdir" + rm -rf $pkgname-* + mv roundup $pkgname-$pkgver +} + +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 +} + diff --git a/libre/sh-roundup/makefile-fix.patch b/libre/sh-roundup/makefile-fix.patch new file mode 100644 index 000000000..b97bebf23 --- /dev/null +++ b/libre/sh-roundup/makefile-fix.patch @@ -0,0 +1,11 @@ +--- Makefile.orig ++++ Makefile +@@ -79,7 +79,7 @@ + chmod 0755 $(bindir)/roundup + + install-man: man +- -for i in {1..9} ; do cp *.$$i $(mandir)/man$$i 2>/dev/null ; done ++ shopt -s nullglob; for file in *.{1..9}; do install -Dm644 $$file $(mandir)/man$${file##*.}/$${file##*/}; done + + .PHONY: pages + pages : doc |