aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mysql-connector-odbc
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-08-07 13:56:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-08-07 13:56:39 +0000
commiteb096f01dfad7997179ffe329eeb933aeb2ab600 (patch)
treea1fa64a22a324df851ee5729145204c02ddb3195 /testing/mysql-connector-odbc
parent791b2d1e11b4f61a5d1b1c3d7395ae4b6648bffe (diff)
downloadaports-eb096f01dfad7997179ffe329eeb933aeb2ab600.tar.bz2
aports-eb096f01dfad7997179ffe329eeb933aeb2ab600.tar.xz
testing/mysql-connector-odbc: new aport
ODBC driver for MySQL http://dev.mysql.com/downloads/connector/odbc/
Diffstat (limited to 'testing/mysql-connector-odbc')
-rw-r--r--testing/mysql-connector-odbc/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/mysql-connector-odbc/APKBUILD b/testing/mysql-connector-odbc/APKBUILD
new file mode 100644
index 0000000000..4a95b3e167
--- /dev/null
+++ b/testing/mysql-connector-odbc/APKBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=mysql-connector-odbc
+pkgver=5.2.7
+pkgrel=0
+pkgdesc="ODBC driver for MySQL"
+url="http://dev.mysql.com/downloads/connector/odbc/"
+arch="all"
+license="GPLv2 with exceptions"
+depends=""
+depends_dev=""
+makedepends="$depends_dev mysql-dev unixodbc-dev cmake"
+install=""
+subpackages=""
+source="http://dev.mysql.com/get/Downloads/Connector-ODBC/${pkgver%.*}/mysql-connector-odbc-$pkgver-src.tar.gz"
+
+_builddir="$srcdir"/mysql-connector-odbc-$pkgver-src
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ cmake . -G "Unix Makefiles" \
+ -DWITH_UNIXODBC=1 \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMYSQLCLIENT_LIB_NAME=mysqlclient \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -r "$pkgdir"/usr/[A-Z]* \
+ "$pkgdir"/usr/bin \
+ "$pkgdir"/usr/test \
+ || return 1
+
+}
+
+md5sums="4e1e313fd4e2fe46741802b026c4c5fe mysql-connector-odbc-5.2.7-src.tar.gz"
+sha256sums="0ad8fcccb4c41c7100fe02ec0aa87938d33329d23f7b68d1b9031c87750392c9 mysql-connector-odbc-5.2.7-src.tar.gz"
+sha512sums="f54ac8a23ade71da85e1335e95eccdccfd68a8687d17a584ced103812bdc5aee8014769a84eaa22724bb2cb23d34c7188c964d3283723defeaef5157a4b3c60f mysql-connector-odbc-5.2.7-src.tar.gz"