From b6af1e02efe594039707cd882517663d5370f375 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Thu, 25 Aug 2016 15:26:24 +0200 Subject: testing/[multiple]: move unmaintained packages This moves all packages from testing to unmaintained which have not been updated for atleast 6 months. If you are affected by this commit please follow this proceddure: * make sure your packages build on all architectures * move your pacakge(s) back to testing * if you want to keep this package and can maintain it (or find somebody to maintain it for you) for a minimum of 6 months ask it to be moved to community --- unmaintained/mysql-connector-odbc/APKBUILD | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 unmaintained/mysql-connector-odbc/APKBUILD (limited to 'unmaintained/mysql-connector-odbc') diff --git a/unmaintained/mysql-connector-odbc/APKBUILD b/unmaintained/mysql-connector-odbc/APKBUILD new file mode 100644 index 0000000000..4a95b3e167 --- /dev/null +++ b/unmaintained/mysql-connector-odbc/APKBUILD @@ -0,0 +1,49 @@ +# Maintainer: Natanael Copa +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" -- cgit v1.2.3