pkgbuilds/mssql-server/PKGBUILD

54 lines
1.4 KiB
Bash
Raw Normal View History

2023-08-30 19:27:59 -06:00
# Maintainer: DoctorZeus(Dan) <contact@techtonicsoftware.com>
# Contributor: Gabriel Morrison Lima Dantas <gabrielmldantas@gmail.com>
# Contributor: Aleksey Kamenskikh <aleksey.kamenskikh@gmail.com>
pkgname=mssql-server
pkgver=16.0.4045.3
_remRevision=1
_prodver=${pkgver}-${_remRevision}
pkgrel=1
pkgdesc="Microsoft SQL Server for Linux"
arch=('x86_64')
url="https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-overview?view=sql-server-ver16"
license=('unknown')
depends=(
'libatomic_ops'
'libunwind'
'numactl'
'glibc'
'libc++'
'gdb'
'openssl-1.1'
'krb5'
'nss'
'sssd'
'gawk'
'sed'
'pam'
'libldap<=2.4.59'
);
optdepends=(
'python-pyodbc'
);
#This is a local azure instance that resolves as an alias of "packages.microsoft.com/rhel/7/mssql-server-2019" as some regions have different dir structures
source=("http://csd-apt-sea-d-4.southeastasia.cloudapp.azure.com/rhel/8/mssql-server-2022/Packages/m/${pkgname}-${_prodver}.x86_64.rpm")
sha256sums=('0d9415dc40c96e60d19af40351490e18f73af0eeee0acff5f14c24e078a29c7c')
install=$pkgname.install
package() {
#Setup
cd $pkgdir
mv $srcdir/opt .
mv $srcdir/usr .
#Create links to non-breaking libssl and libcrypto libs
ln -sf /lib/libssl.so.1.1 $pkgdir/opt/mssql/lib/libssl.so
ln -sf /lib/libcrypto.so.1.1 $pkgdir/opt/mssql/lib/libcrypto.so
#Set systemd service file perms
chmod 644 $pkgdir/usr/lib/systemd/system/mssql-server.service
}