jobcore/unixodbc/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
2023-08-13 23:14:20 +02:00
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
2023-08-13 23:14:20 +02:00
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=unixodbc
2023-08-13 23:14:20 +02:00
pkgver=2.3.12
2022-03-20 13:19:37 +01:00
pkgrel=01
pkgdesc="ODBC is an open specification for providing application developers with a predictable API with which to access Data Sources"
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)
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
}
2023-08-13 23:14:20 +02:00
#---- arch license gpg-key & sha256sums ----
2022-03-20 13:19:37 +01:00
2023-08-13 23:14:20 +02:00
arch=(x86_64)
2022-03-20 13:19:37 +01:00
2023-08-13 23:14:20 +02:00
license=('GPL2' 'LGPL2.1')
2022-06-02 20:02:21 +02:00
2023-08-13 23:14:20 +02:00
sha256sums=(f210501445ce21bf607ba51ef8c125e10e22dffdffec377646462df5f01915ec) # unixODBC-2.3.12.tar.gz
2022-06-02 20:02:21 +02:00
2023-08-13 23:14:20 +02:00
## 989d92eaf5c17c6d1a05a4e465f688a992f5a8dcb736cec5976315f5e0dd3da9 unixodbc-2.3.12-01-x86_64.pkg.tar.lz