diff options
author | David P <megver83@parabola.nu> | 2020-07-23 13:39:25 -0400 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2020-07-23 13:39:25 -0400 |
commit | f51ddcb00c111ecc26754f5605c367cc2c54e596 (patch) | |
tree | 8234a0889b209bf80a3f20c269e75de156096e46 /pcr/soci | |
parent | e07b16fd0133fe4491e0dd594d29c2a892dc1747 (diff) | |
download | abslibre-f51ddcb00c111ecc26754f5605c367cc2c54e596.tar.gz abslibre-f51ddcb00c111ecc26754f5605c367cc2c54e596.tar.bz2 abslibre-f51ddcb00c111ecc26754f5605c367cc2c54e596.zip |
addpkg: pcr/soci 4.0.0-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'pcr/soci')
-rw-r--r-- | pcr/soci/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pcr/soci/PKGBUILD b/pcr/soci/PKGBUILD new file mode 100644 index 000000000..f5047164a --- /dev/null +++ b/pcr/soci/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: David P. <megver83@parabola.nu> + +pkgname=soci +pkgver=4.0.0 +pkgrel=1 +pkgdesc='Database access library for C++' +arch=(i686 x86_64) +url="http://soci.sf.net" +license=('custom:boost') +depends=('gcc-libs') +makedepends=('cmake' 'postgresql-libs' 'sqlite3' 'unixodbc' 'boost') +optdepends=('instantclient-basic: support for oracle databases' + 'libmysqlclient: support for mysql databases' + 'postgresql-libs: support for postgresql databases' + 'sqlite3: support for sqlite databases' + 'unixodbc: support for ODBC databases' + 'libmysqlclient' + 'boost-libs') +source=(#"http://downloads.sourceforge.net/project/soci/soci/${pkgname}-${pkgver}/${pkgname}-${pkgver}.zip" + "https://github.com/SOCI/soci/archive/$pkgver.tar.gz" +) +sha256sums=('359b988d8cbe81357835317821919f7e270c0705e41951a92ac1627cb9fe8faf') + +build() { + mkdir -p build + cd build + + cmake -DSOCI_TESTS=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + "../$pkgname-$pkgver" + make +} + +package() { + make -C build DESTDIR="$pkgdir" install + + # For some reason -DLIBDIR=lib causes libsoci_empty.so to disappear + if [ -e "$pkgdir/usr/lib64" ]; then + mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib" + fi + install -Dm0644 "$pkgname-$pkgver/LICENSE_1_0.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |