diff --git a/user/soci/APKBUILD b/user/soci/APKBUILD new file mode 100644 index 0000000..b49fbdb --- /dev/null +++ b/user/soci/APKBUILD @@ -0,0 +1,42 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +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 +"