Date: Friday, April 5, 2013 @ 23:20:34 Author: thestinger Revision: 87741
rust: add optional dep on haskell-pandoc Modified: rust/trunk/PKGBUILD ----------+ PKGBUILD | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-04-05 21:06:47 UTC (rev 87740) +++ PKGBUILD 2013-04-05 21:20:34 UTC (rev 87741) @@ -2,13 +2,14 @@ # Maintainer: Daniel Micay <[email protected]> pkgname=rust pkgver=0.6 -pkgrel=2 +pkgrel=3 arch=('i686' 'x86_64') pkgdesc='A safe, concurrent, practical language' url='http://www.rust-lang.org/' license=('MIT' 'Apache') depends=(gcc-libs shared-mime-info) makedepends=(libffi perl python2 curl chrpath emacs) +optdepends=('haskell-pandoc: documentation generator (rustdoc)') source=("http://static.rust-lang.org/dist/rust-${pkgver}.tar.gz") sha256sums=('e11cb529a1e20f27d99033181a9e0e131817136b46d2742f0fa1afa1210053e5') install=rust.install @@ -24,6 +25,11 @@ make } +check() { + cd rust-$pkgver + make check +} + package() { cd rust-$pkgver make DESTDIR="$pkgdir" install @@ -55,8 +61,3 @@ cp lib/rustc/*/lib/{librustdoc-*-0.6.so,librustpkg-*-0.6.so} lib/ } - -check() { - cd rust-$pkgver - make check -}
