From bf332fd6a63a908839d159c011110d2952a50f44 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Sun, 6 Aug 2023 14:56:42 -0400 Subject: [PATCH] New package: libdbi-drivers-0.9.0 --- srcpkgs/libdbdmysql | 1 + srcpkgs/libdbdpgsql | 1 + srcpkgs/libdbdsqlite | 1 + srcpkgs/libdbi-drivers-devel | 1 + srcpkgs/libdbi-drivers/template | 56 +++++++++++++++++++++++++++++++++ 5 files changed, 60 insertions(+) create mode 120000 srcpkgs/libdbdmysql create mode 120000 srcpkgs/libdbdpgsql create mode 120000 srcpkgs/libdbdsqlite create mode 120000 srcpkgs/libdbi-drivers-devel create mode 100644 srcpkgs/libdbi-drivers/template diff --git a/srcpkgs/libdbdmysql b/srcpkgs/libdbdmysql new file mode 120000 index 00000000000..28d3bc25c5f --- /dev/null +++ b/srcpkgs/libdbdmysql @@ -0,0 +1 @@ +libdbi-drivers \ No newline at end of file diff --git a/srcpkgs/libdbdpgsql b/srcpkgs/libdbdpgsql new file mode 120000 index 00000000000..28d3bc25c5f --- /dev/null +++ b/srcpkgs/libdbdpgsql @@ -0,0 +1 @@ +libdbi-drivers \ No newline at end of file diff --git a/srcpkgs/libdbdsqlite b/srcpkgs/libdbdsqlite new file mode 120000 index 00000000000..28d3bc25c5f --- /dev/null +++ b/srcpkgs/libdbdsqlite @@ -0,0 +1 @@ +libdbi-drivers \ No newline at end of file diff --git a/srcpkgs/libdbi-drivers-devel b/srcpkgs/libdbi-drivers-devel new file mode 120000 index 00000000000..28d3bc25c5f --- /dev/null +++ b/srcpkgs/libdbi-drivers-devel @@ -0,0 +1 @@ +libdbi-drivers \ No newline at end of file diff --git a/srcpkgs/libdbi-drivers/template b/srcpkgs/libdbi-drivers/template new file mode 100644 index 00000000000..fcf56b63dec --- /dev/null +++ b/srcpkgs/libdbi-drivers/template @@ -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 " +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" + } +}