blob: 6696d87e709ee6fd5a2dc5cd9de3696f7478ab0b (
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.1
pkgrel=1
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=(
"git+https://github.com/graywolf/xbase#tag=${pkgver}"
"git+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() {
./xbase/build/test/tests
}
package() {
cd "${pkgname}/build"
make install
}
|