summaryrefslogtreecommitdiff
path: root/community/myodbc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/myodbc/PKGBUILD')
-rw-r--r--community/myodbc/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/myodbc/PKGBUILD b/community/myodbc/PKGBUILD
new file mode 100644
index 000000000..201a434ae
--- /dev/null
+++ b/community/myodbc/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 87009 2013-03-25 19:16:48Z bpiotrowski $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=myodbc
+pkgver=5.2.4
+pkgrel=2
+pkgdesc="ODBC driver/connector for mariadb"
+arch=(i686 x86_64)
+url="http://dev.mysql.com/downloads/connector/odbc/"
+depends=('unixodbc' 'libmariadbclient')
+makedepends=('cmake')
+license=('GPL')
+options=('libtool')
+source=("http://cdn.mysql.com/Downloads/Connector-ODBC/5.2/mysql-connector-odbc-$pkgver-src.tar.gz")
+md5sums=('0ace04820794ea1712b2a303ebd99dba')
+
+build() {
+ cd $srcdir/mysql-connector-odbc-${pkgver}-src
+ unset LDFLAGS
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_UNIXODBC=1 .
+ make
+}
+
+package() {
+ cd $srcdir/mysql-connector-odbc-${pkgver}-src
+ make DESTDIR=$pkgdir install
+ pushd $pkgdir/usr
+ rm -rf test
+ install -dm0755 share/mysql-connector-odbc
+ mv ChangeLog COPYING INSTALL Licenses_for_Third-Party_Components.txt README README.debug \
+ share/mysql-connector-odbc/
+ popd
+}