pkgbuilds/mssql-server/PKGBUILD

54 lines
1.4 KiB
Bash
Raw Permalink 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
2023-11-28 09:30:28 -06:00
pkgver=16.0.4095.4
_remRevision=1
2023-08-30 19:27:59 -06:00
_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")
2023-11-28 09:30:28 -06:00
sha256sums=('722ccf1f224a7a77bd7d8c02f96dce2a4d5d2e9814dbe23d998bcd48d27e49e2')
2023-08-30 19:27:59 -06:00
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
}