# $Id: PKGBUILD 227899 2014-12-21 15:50:11Z heftig $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgname=orc-git
pkgver=0.4.23.r1.g62d0b80
pkgrel=1
pkgdesc="The Oild Runtime Compiler"
arch=('i686' 'x86_64')
license=('custom')
url="http://code.entropywave.com/projects/orc/"
depends=('glibc')
makedepends=('git' 'gtk-doc' 'valgrind')
provides=('orc')
conflicts=('orc')
source=(git://anongit.freedesktop.org/gstreamer/orc)
md5sums=('SKIP')

# Bisecting FS#43298
# a62eefc1dc716046d99aacec208cfdfe42dadb34 is the first bad commit

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build () {
  cd "${pkgname%-git}"
  sh autogen.sh
    ./configure --prefix=/usr --disable-static
    make
}

check() {
  cd "${pkgname%-git}"
    make check || [[ $CARCH == i686 ]]
}

package() {
  cd "${pkgname%-git}"
    make DESTDIR="$pkgdir" install
    install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
