blob: 375d21fb8acd13a36633a5127caf5498f3c0a7bb (
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
|
# Maintainer: Y7n05h <Y7n05h(aT)protonmail--d0t--com>
pkgname=mariadb-connector-cpp-git
pkgver=20211016
pkgrel=2
pkgdesc=" MariaDB Connector for C++ ."
arch=('x86_64')
url="https://github.com/mariadb-corporation/mariadb-connector-cpp"
license=("LGPL")
depends=('mariadb-libs')
makedepends=('cmake' 'git')
provides=('mariadb-connector-cpp')
source=("$pkgname::git+$url")
sha512sums=('SKIP')
pkgver() {
date +%Y%m%d
}
prepare() {
cd "$srcdir/$pkgname"
sed -i "1i\INCLUDE_DIRECTORIES(\"/usr/include/mysql\")" ./CMakeLists.txt
rm -rf build
mkdir build
}
build() {
rm "$srcdir/$pkgname/test/CMakeLists.txt"
rmdir "$srcdir/$pkgname/libmariadb"
cd "$srcdir/$pkgname/build"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_LIB_SUFFIX=/usr/lib \
-DUSE_SYSTEM_INSTALLED_LIB=TRUE \
..
make
}
package() {
cd "$srcdir/$pkgname/build"
make DESTDIR="${pkgdir}" install
mv "${pkgdir}"/usr/lib/mariadb/* "${pkgdir}"/usr/lib/
rmdir "${pkgdir}"/usr/lib/mariadb/
}
|