# $Id: PKGBUILD 145556 2015-11-02 07:25:06Z fyan $
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=tut
pkgver=0.0.4
pkgrel=1
pkgdesc="C++ unit test framework"
arch=('any')
url="https://git.merproject.org/mer-core/tut"
license=('BSD')
makedepends=('git' 'python2')
source=("git+https://git.merproject.org/mer-core/tut.git#tag=$pkgver")
sha256sums=('SKIP')

build() {
  cd tut
  
  python2 waf configure --prefix=/usr
  python2 waf build
}

check() {
  cd tut
  
  python2 waf test
}

package() {
  cd tut

  python2 waf install --destdir="$pkgdir"
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
