blob: cb3ba71d4202fd0ffd978b2428acd8bc9a0af876 (
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
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
pkgname=libkolabxml-git
pkgver=1.2.r569.06823bc
pkgrel=1
pkgdesc="Kolab XML Format Schema Definitions Library. (GIT Version)"
url='https://kolab.org'
arch=('i686' 'x86_64')
license=('GPL')
makedepends=('git' 'cmake' 'boost' 'xsd' 'swig' 'xerces-c' 'boost-libs')
conflicts=('libkolabxml')
source=('git+https://git.kolab.org/diffusion/LKX/libkolabxml.git')
sha1sums=('SKIP')
pkgver() {
cd libkolabxml
_ver="$(cat CMakeLists.txt | grep -m2 -e Libkolabxml_VERSION_MAJOR -e Libkolabxml_VERSION_MINOR | grep -o "[[:digit:]]*" | paste -sd'.')"
echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../libkolabxml \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTS=OFF
make
}
package() {
make -C build DESTDIR="${pkgdir}" install
}
|