blob: 0593be51c95972b1f3a9fb09ffb9f819ad317c70 (
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
53
54
55
56
57
58
59
60
|
# Maintainer: Markus Kitsinger (SwooshyCueb) <root@swooshalicio.us>
# Contributor: Diego Sogari <diego.sogari@falker.com.br>
pkgname=nanodbc
pkgver=2.13.0
pkgrel=3
pkgdesc="A small C++ wrapper for the native C ODBC API"
arch=('i686' 'x86_64')
url="http://nanodbc.io/"
license=('MIT')
depends=('unixodbc')
makedepends=('gcc' 'cmake')
source=("${pkgname}-${pkgver}.tar.gz"::https://github.com/nanodbc/nanodbc/archive/v${pkgver}.tar.gz)
sha256sums=('174080f1cab25b1d7fe5a8e2862f4e730a1c7c1732b7bc54132ade832ef1a07c')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i '28 i #include <limits>' nanodbc/nanodbc.cpp
}
build() {
rm -rf "${srcdir}/build" "${srcdir}/build-static"
mkdir "${srcdir}/build" "${srcdir}/build-static"
cd "${srcdir}/build-static"
cmake \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DNANODBC_DISABLE_LIBCXX=ON \
-DNANODBC_DISABLE_TESTS=ON \
"../${pkgname}-${pkgver}"
make
cd "${srcdir}/build"
cmake \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DNANODBC_DISABLE_LIBCXX=ON \
-DNANODBC_DISABLE_TESTS=ON \
"../${pkgname}-${pkgver}"
make
}
# TODO
#check() {
#}
package() {
cd "${srcdir}/build-static"
make DESTDIR="${pkgdir}" install
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
}
|