# Maintainer: Michael Hansen <zrax0111 gmail com>

pkgname=libblocksruntime
pkgver=0.4.1
pkgrel=1
pkgdesc="compiler-rt Blocks runtime library for Clang"
arch=("i686" "x86_64")
url="https://compiler-rt.llvm.org"
license=("custom:University of Illinois" "MIT")
depends=("clang")
source=("http://http.debian.net/debian/pool/main/libb/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz")
sha256sums=("7807e18d7d6cabd90f77c8b8a8ebd472516fa4ed6a02df82e0c33b1c5e112abc")

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    ./configure --prefix=/usr
    make
}

check() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make check
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make install DESTDIR="${pkgdir}"
}
