You are not logged in.

#1 2009-10-20 16:18:57

carlf
Member
Registered: 2009-10-20
Posts: 1

Splitting up libdbi-drivers

I adopted the orphaned packaged libdbi and libdbi-drivers. The libdbi-drivers package did not split up the drivers for various databases so it depends on several different database packages including postgresql and mysql. This seems a little heavy if someone just wants to use it with sqlite3 or something so I would like to split the package into individual packages for each driver. I have a few questions on the best practices here.

1. From my reading of the man pages, it seems that split packages from a single PKGBUILD would not work here. Is that correct?
2. I assume most packages which depend on libdbi-drivers do not care about which driver is used just that there is a driver. Should I have each driver package set with "provides=('libdbi-drivers')" so that packages can just depend on a driver generically?
3. If that is the case, will there be a conflict with the existing package called 'libdbi-drivers'? Once I have all the driver packages made up, I would likely ask for the old package to be deleted. It doesn't appear that anything in AUR currently depends on the libdbi-drivers package so it wouldn't break anything in AUR but it might break some private package not on AUR.

For reference, here is an example of one of the PKGBUILDS. There would be one each for the various database drivers. Any other general criticisms or suggestions would be greatly appreciated.

# Contributor: Carl Flippin <carlf@photocarl.org>

pkgname=libdbi-drivers-sqlite3
pkgver=0.8.3
pkgrel=1
pkgdesc="Database driver for libdbi (sqlite3)"
url="http://libdbi-drivers.sourceforge.net/"
license=(GPL)
depends=('libdbi' 'sqlite3')
makedepends=()
provides=('libdbi-drivers')
options=(!libtool)
arch=('i686' 'x86_64')
source=(http://downloads.sourceforge.net/project/libdbi-drivers/libdbi-drivers/libdbi-drivers-$pkgver-1/libdbi-drivers-$pkgver-1.tar.gz)
md5sums=('4de79b323162a5a7652b65b608eca6cd')

build() {
  cd $startdir/src/libdbi-drivers-$pkgver-1
  ./configure --prefix=/usr \
        --disable-docs \
        --with-sqlite3 \
        || return 1
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Offline

Board footer

Powered by FluxBB