summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6aa55e4855b2cde818294a95e65bc1fbd2b4956b (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
31
32
33
34
# Maintainer: Jonathan Buchanan <jonathan.russ.buchanan@gmail.com>
pkgname=rhea
pkgver=0.2.4
pkgrel=1
pkgdesc="A constraint solver based on Cassowary"
arch=('i686' 'x86_64')
url="https://github.com/Nocte-/rhea"
license=('MIT')
depends=('gcc-libs')
makedepends=('cmake>=2.8.3')
checkdepends=('boost')
source=("https://github.com/Nocte-/$pkgname/archive/$pkgver.tar.gz")
md5sums=('22e97deb84eb5b8e85288974218f9a4a')

prepare() {
	cd "$pkgname-$pkgver"
	mkdir build
}

build() {
	cd "$pkgname-$pkgver/build"
	cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DBUILD_UNITTESTS=1 ..
	make
}

check() {
	cd "$pkgname-$pkgver/build/unit_tests"
	./unit_tests
}

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