summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1189e50463baaf710b65f65005c7d1d6fdfc2a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Kilian Köppchen <kiliankoeppchen at gmail dot com>
pkgname=unittest-cpp-git
pkgver=v1.4.r210.g90357e2
pkgrel=1
pkgdesc="Lightweight unit testing framework for C++"
arch=('i686' 'x86_64')
url="https://github.com/unittest-cpp/unittest-cpp"
license=('MIT')
depends=('gcc-libs')
makedepends=('git' 'cmake' 'make')
source=("$pkgname"::'git+https://github.com/unittest-cpp/unittest-cpp.git')
md5sums=('SKIP')
conflicts=('unittestpp')

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

build() {
  cd "$srcdir/$pkgname/builds"
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
  make
}

package() {
  cd "$srcdir/$pkgname/builds"
  make DESTDIR=$pkgdir install
	install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}