aboutsummaryrefslogblamecommitdiffstats
path: root/community/libdbi-drivers/APKBUILD
blob: cb3f0c0239d2e9cd9fa5415e52af3578354c23bb (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   


                      
        


                                                                         
                           






                                                                       
                                                                                                                 
 

                                       
           

                                       


         
                      










                                          
                      



                                                  
                                                                                                                                                                          
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer:
pkgname=libdbi-drivers
pkgver=0.9.0
pkgrel=1
pkgdesc="Provides the database-specific drivers for the libdbi framework"
url="http://libdbi-drivers.sourceforge.net/"
arch="all"
license="LGPL-2.0-or-later"
depends=""
depends_dev=""
makedepends="libdbi-dev freetds-dev mysql-dev postgresql-dev sqlite-dev
	$depends_dev"
install=""
subpackages=""
options="libtool"
source="https://downloads.sourceforge.net/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"

builddir=${srcdir}/${pkgname}-${pkgver}

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		    --localstatedir=/usr \
		    --with-mysql \
		    --with-pgsql \
		    --with-sqlite3 \
		    --disable-docs \
		    || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	chmod -R o-w "$pkgdir"/usr/lib/libdbi
}

sha512sums="f4d3aaa71014697c53012a10bf9f0af398bcf5ee5872af165f8f43a682d2fb3045a9172ffea0e068dcbfcad52494878c037d8d90fadfaf176936e42f7f1e85c1  libdbi-drivers-0.9.0.tar.gz"