aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2021-05-23 00:33:29 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-05-23 00:33:53 -0300
commit5d0d39f1e3db8901ff1cf4541058943d05bd8a90 (patch)
tree6471c4c382760acbfec6e8ff61e9efce3fbf7a2b
parent5c4f02a81c7da80254e73c2b8ce49d497b6df4bc (diff)
downloadaports-5d0d39f1e3db8901ff1cf4541058943d05bd8a90.tar.gz
aports-5d0d39f1e3db8901ff1cf4541058943d05bd8a90.tar.bz2
aports-5d0d39f1e3db8901ff1cf4541058943d05bd8a90.tar.xz
community/libdbi-drivers: modernize
-rw-r--r--community/libdbi-drivers/APKBUILD39
1 files changed, 16 insertions, 23 deletions
diff --git a/community/libdbi-drivers/APKBUILD b/community/libdbi-drivers/APKBUILD
index 89dfeeda45..651a07807e 100644
--- a/community/libdbi-drivers/APKBUILD
+++ b/community/libdbi-drivers/APKBUILD
@@ -4,41 +4,34 @@ pkgname=libdbi-drivers
pkgver=0.9.0
pkgrel=1
pkgdesc="Provides the database-specific drivers for the libdbi framework"
+options="libtool"
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}
+makedepends="libdbi-dev freetds-dev mysql-dev postgresql-dev sqlite-dev"
+source="https://downloads.sourceforge.net/libdbi-drivers/libdbi-drivers/libdbi-drivers-$pkgver/libdbi-drivers-$pkgver.tar.gz"
prepare() {
- default_prepare || return 1
- update_config_guess || return 1
+ default_prepare
+ update_config_guess
update_config_sub
}
build() {
- cd "$builddir"
- ./configure --prefix=/usr \
- --localstatedir=/usr \
- --with-mysql \
- --with-pgsql \
- --with-sqlite3 \
- --disable-docs \
- || return 1
- make || return 1
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --localstatedir=/usr \
+ --with-mysql \
+ --with-pgsql \
+ --with-sqlite3 \
+ --disable-docs
+ make
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
chmod -R o-w "$pkgdir"/usr/lib/libdbi
}