ayaports/user/soci/APKBUILD

43 lines
957 B
Text
Raw Normal View History

2023-05-03 04:32:43 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=soci
pkgver=4.0.3
pkgrel=0
pkgdesc="Database access library for C++"
2023-08-11 19:49:05 +00:00
arch="x86_64"
2023-05-03 04:32:43 +00:00
url="http://soci.sf.net"
license="BSL-1.0"
makedepends="
cmake
boost-dev
libgcc
mariadb-dev
postgresql-dev
sqlite-dev
unixodbc-dev
"
options="!check" # No testsuite
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/SOCI/soci/archive/refs/tags/v$pkgver.tar.gz"
build() {
cmake \
-DSOCI_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_CXX_STANDARD=11 \
"$builddir"
make
}
package() {
make DESTDIR="$pkgdir" install
install -Dm0644 "$srcdir/$pkgname-$pkgver/LICENSE_1_0.txt" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="
d501f55e7e7408e46b4823fd8a97d6ef587f5db0f5b98434be8dfc5693c91b8c3b84a24454279c83142ab1cd1fa139c6e54d6d9a67397b2ead61650fcc88bcdb soci-4.0.3.tar.gz
"