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
|
2022-06-02 20:02:21 +02:00
|
|
|
pkgver=2.3.11
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="ODBC is an open specification for providing application developers with a predictable API with which to access Data Sources"
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('GPL2' 'LGPL2.1')
|
|
|
|
url="http://www.unixodbc.org/"
|
|
|
|
backup=('etc/odbc.ini' 'etc/odbcinst.ini')
|
|
|
|
depends=('readline' 'libltdl')
|
|
|
|
source=(ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-$pkgver.tar.gz)
|
2022-06-02 20:02:21 +02:00
|
|
|
sha256sums=('d9e55c8e7118347e3c66c87338856dad1516b490fb7c756c1562a2c267c73b5c')
|
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
|
|
|
|
}
|