summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 640254030db0f8c47b548c353b17a5d9697de18a (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $Id: PKGBUILD 252466 2015-12-05 16:35:01Z fyan $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>

pkgname=xbase
pkgver=3.3.0
pkgrel=3
pkgdesc="A C++ library"
arch=('i686' 'x86_64')
url='https://github.com/graywolf/xbase'
license=('LGPL')
depends=('gcc-libs')
makedepends=('git' 'cmake')
options=(staticlibs)

source=(
	"https://github.com/graywolf/xbase#tag=${pkgver}"
	"https://github.com/google/googletest"
)
sha512sums=(
	'SKIP'
	'SKIP'
)

prepare() {
	cd "${pkgname}"

	git submodule init
	git config submodule.3rd_party/googletest.url "${srcdir}/googletest"
	git submodule update

	mkdir -p build
}

build() {
	cd "${pkgname}/build"

	cmake \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX="${pkgdir}" \
		..
	make
}

check() {
	make check
}

package() {
	cd "${pkgname}/build"
	make install
}