New package: libdbi-drivers-0.9.0

This commit is contained in:
cinerea0 2023-08-06 14:56:42 -04:00 committed by Duncan Overbruck
parent 55e3f6abae
commit bf332fd6a6
5 changed files with 60 additions and 0 deletions

1
srcpkgs/libdbdmysql Symbolic link
View File

@ -0,0 +1 @@
libdbi-drivers

1
srcpkgs/libdbdpgsql Symbolic link
View File

@ -0,0 +1 @@
libdbi-drivers

1
srcpkgs/libdbdsqlite Symbolic link
View File

@ -0,0 +1 @@
libdbi-drivers

View File

@ -0,0 +1 @@
libdbi-drivers

View File

@ -0,0 +1,56 @@
# Template file for 'libdbi-drivers'
pkgname=libdbi-drivers
version=0.9.0
revision=1
build_style=gnu-configure
configure_args="--with-mysql --with-pgsql --with-sqlite3"
hostmakedepends="automake docbook docbook-dsssl libtool openjade
postgresql-libs-devel"
makedepends="libdbi-devel libmariadbclient-devel postgresql-libs-devel
sqlite-devel zlib-devel"
depends="libdbdmysql libdbdpgsql libdbdsqlite"
short_desc="Database drivers for libdbi (MySQL, PostgreSQL, and SQLite)"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="LGPL-2.1-only"
homepage="https://libdbi-drivers.sourceforge.net/"
changelog="https://sourceforge.net/p/libdbi-drivers/libdbi-drivers/ci/master/tree/NEWS"
distfiles="${SOURCEFORGE_SITE}/libdbi-drivers/libdbi-drivers-${version}.tar.gz"
checksum=43d2eacd573a4faff296fa925dd97fbf2aedbf1ae35c6263478210c61004c854
make_check=no # tests require full DB environments and hang
if [ "${CROSS_BUILD}" ]; then
configure_args+=" --with-dbi-libdir=${XBPS_CROSS_BASE}/usr/lib"
fi
pre_configure() {
autoreconf -fi
}
libdbdmysql_package() {
short_desc="MySQL driver for libdbi"
pkg_install() {
vmove usr/lib/dbd/libdbdmysql.so
}
}
libdbdpgsql_package() {
short_desc="PostgreSQL driver for libdbi"
pkg_install() {
vmove usr/lib/dbd/libdbdpgsql.so
}
}
libdbdsqlite_package() {
short_desc="SQLite driver for libdbi"
pkg_install() {
vmove usr/lib/dbd/libdbdsqlite3.so
}
}
libdbi-drivers-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove "usr/lib/dbd/*.a"
}
}