user/soci: new aport

This commit is contained in:
Antoine Martin 2023-05-03 00:32:43 -04:00
parent 55c7fdf7d5
commit 16b38093e6
Signed by: forge
GPG key ID: D62A472A4AA7D541

42
user/soci/APKBUILD Normal file
View file

@ -0,0 +1,42 @@
# 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++"
arch="x86_64"
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
"