blob: eb72132f6276a34c6ce67676dc59d620e4081249 (
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
|
# Contributor: BluePeril <blueperil (at) blueperil _dot_ de>
pkgname=mariadb-connector-c
pkgver=3.3.7
_dlnumber=3439457
pkgrel=1
pkgdesc="MariaDB Connector/C is used to connect applications developed in C/C++ to MariaDB and MySQL databases."
arch=('i686' 'x86_64')
url="https://mariadb.com/kb/en/mariadb/about-mariadb-connector-c/"
license=("LGPL")
depends=('openssl' 'zlib')
makedepends=('cmake')
source=("https://dlm.mariadb.com/${dl_number}/Connectors/c/connector-c-${pkgver}/mariadb-connector-c-${pkgver}-src.tar.gz")
sha256sums=('975a9a862fed80f84e0206373f7ef05537aada5b65d99b71b36ab892b44240bf')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}-src"
rm -rf build
mkdir build
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}-src/build"
cmake \
-DCMAKE_BUILD_TYPE=RELEASE \
-DWITH_EXTERNAL_ZLIB=ON \
-DWITH_SQLITE=OFF \
-DWITH_OPENSSL=ON \
-DWITH_MYSQLCOMPAT=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMARIADB_UNIX_ADDR=/run/mysqld/mysqld.sock \
..
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}-src/build"
make DESTDIR="${pkgdir}" install
# for compatibility with mariadb-connector-c version 2 and other programs (e.g. teamspeak-server)
ln -sf /usr/lib/mariadb/libmariadb.so.3 ${pkgdir}/usr/lib/mariadb/libmariadb.so.2
}
# vim:set ts=2 sw=2 et:
|