blob: 2a24118c352703ab3b924a771b1dcbe6f8e70dc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Vitor Rodrigues <vitor.rodrigues@gmail.com>
# Contributor: Jorge Cervantes <jorge.cervantes.e@gmail.com>
pkgname=msodbcsql
pkgver=18.4.1.1
pkgrel=1
pkgdesc="Microsoft® ODBC Driver 18 for SQL Server®"
arch=('x86_64')
url="https://techcommunity.microsoft.com/t5/sql-server-blog/bg-p/SQLServer/label-name/SQLServerDrivers"
license=('custom')
depends=('unixodbc' 'krb5' 'curl')
options=('!strip')
source=(https://packages.microsoft.com/rhel/9/prod/Packages/m/msodbcsql18-$pkgver-1.x86_64.rpm)
sha256sums=('572265bfb20e8c5a5c6d727d62fe55035ced35ceecbcdc3b5a84c52b78267bb1')
install=msodbcsql.install
package() {
install -Dm0644 usr/share/doc/msodbcsql18/RELEASE_NOTES "$pkgdir"/usr/share/doc/$pkgname/RELEASE_NOTES
install -Dm0644 usr/share/doc/msodbcsql18/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
mv opt "$pkgdir"
mv "$pkgdir"/opt/microsoft/msodbcsql{18,}
ln -s msodbcsql "$pkgdir"/opt/microsoft/msodbcsql18
cd "$pkgdir"/opt/microsoft/msodbcsql
sed 's/msodbcsql18/msodbcsql/g' -i etc/odbcinst.ini
}
|