jobcore/unixodbc/PKGBUILD

45 lines
1.3 KiB
Text
Raw 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
pkgrel=02
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"
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
license=('GPL-2.0-or-later' 'LGPL-2.1-or-later')
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
## 0040f885a9e710bf51c83530f221d961d700b4a58f598f0b4bb84a2dd5d4a97e unixodbc-2.3.12-02-x86_64.pkg.tar.lz