ayaports/unmaintained/libpqxx/APKBUILD
build@apk-groulx 7c2d413554 3.17 cleanup
2023-01-11 00:40:45 +00:00

36 lines
1,003 B
Text

# Maintainer: Antoine Martin <dev@ayakael.net>
pkgname=libpqxx
pkgver=6.4.5
pkgrel=2
pkgdesc='C++ client API for PostgreSQL'
url='http://pqxx.org/development/libpqxx/'
arch=''x86_64''
license='custom'
depends='libecpg'
makedepends='python2 xmlto doxygen postgresql-dev'
provides='libpqxx.so'
subpackages="$pkgname-doc"
source="https://github.com/jtv/libpqxx/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz"
prepare() {
cd $srcdir/${pkgname}-${pkgver}
sed 's|python|python2|' -i tools/splitconfig
}
build() {
cd $srcdir/${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--enable-shared
make
}
package() {
cd $srcdir/${pkgname}-${pkgver}
make prefix="${pkgdir}/usr" install
install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
sha512sums="b6f79c4af93876eaf859626c2deae3b23bd4fa1a438390bc01513ccc48b90565d59588f6977e7475bb7b8dbeb8b1c8ef2a4737d8eb4d15682531fbf78590ed5e libpqxx-6.4.5.tar.gz"