2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: AndyRTR <andyrtr@archlinux.org>
|
|
|
|
# Contributor: Judd Vinet <jvinet@zeroflux.org>
|
|
|
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
|
|
|
|
|
|
|
pkgname=unixodbc
|
2023-08-13 23:14:20 +02:00
|
|
|
pkgver=2.3.12
|
2024-07-02 01:20:46 +02:00
|
|
|
pkgrel=2
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc="ODBC is an open specification for providing application developers with a predictable API with which to access Data Sources"
|
|
|
|
arch=('x86_64')
|
2024-07-02 01:20:46 +02:00
|
|
|
license=('GPL-2.0-or-later' 'LGPL-2.1-or-later')
|
2022-03-20 13:19:37 +01:00
|
|
|
url="http://www.unixodbc.org/"
|
|
|
|
backup=('etc/odbc.ini' 'etc/odbcinst.ini')
|
2023-08-13 23:14:20 +02:00
|
|
|
depends=('readline' 'libltdl' 'glibc')
|
2022-03-20 13:19:37 +01:00
|
|
|
source=(ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-$pkgver.tar.gz)
|
2023-08-13 23:14:20 +02:00
|
|
|
sha256sums=('f210501445ce21bf607ba51ef8c125e10e22dffdffec377646462df5f01915ec')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd unixODBC-${pkgver}
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc
|
2022-06-02 20:02:21 +02:00
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
2022-03-20 13:19:37 +01:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd unixODBC-${pkgver}
|
|
|
|
make -k check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd unixODBC-${pkgver}
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
touch "$pkgdir"/etc/{odbc,odbcinst}.ini
|
|
|
|
}
|