# Maintainer: Erich Eckner # Contributor: William Turner pkgname=azuredatastudio-bin _pkgname=azuredatastudio pkgver=1.48.0 pkgrel=43 pkgdesc="A data management tool that enables you to work with SQL Server, Azure SQL DB and SQL DW. (official prebuilt version)" arch=('x86_64') url="https://github.com/Microsoft/azuredatastudio" license=('custom: microsoft') _pinned_dependencies=( 'gcc-libs=14.2.1+r134+gab884fffe3fc' 'glibc>=2.39' 'libasound.so=2' 'libatk-1.0.so=0' 'libatk-bridge-2.0.so=0' 'libatspi.so=0' 'libcairo.so=2' 'libcrypto.so=3' 'libcurl.so=4' 'libdbus-1.so=3' 'libdrm=2.4.124' 'libexpat.so=1' 'libgio-2.0.so=0' 'libglib-2.0.so=0' 'libgobject-2.0.so=0' 'libgssapi_krb5.so=2' 'libgtk-3.so=0' 'libkrb5.so=3' 'libpango-1.0.so=0' 'libsecret-1.so=0' 'libssl.so=3' 'libx11=1.8.10' 'libxcb=1.17.0' 'libxcomposite=0.4.6' 'libxdamage=1.1.6' 'libxext=1.3.6' 'libxfixes=6.0.1' 'libxkbcommon.so=0' 'libxkbfile=1.1.3' 'libxrandr=1.5.4' 'libz.so=1' 'mesa=1:24.3.1' 'nspr=4.36' 'nss=3.107' ) depends=("${_pinned_dependencies[@]}") makedepends=('sed') optdepends=('krb5: Windows authentication support' 'xdg-utils: Desktop integration') conflicts=('azuredatastudio') options=('staticlibs') source=("$pkgname-$pkgver.tar.gz::https://azuredatastudio-update.azurewebsites.net/$pkgver/linux-x64/stable" "${_pkgname}.desktop") sha256sums=('f99fe0d75103e3aaa535d8a6e99cbc3530f603b0c6d85fa8f5a8a41821b9890e' 'ff4b8d7d1648e7552017c103308aef2d291509a73b7b4ed6083501ea55a1b541') package() { install -d "${pkgdir}/opt/${_pkgname}" cp -a "azuredatastudio-linux-x64/"* "${pkgdir}/opt/${_pkgname}" # Symlink the startup script in /usr/bin install -d "${pkgdir}/usr/bin" ln -s "/opt/${_pkgname}/bin/azuredatastudio" "${pkgdir}/usr/bin/${_pkgname}" # Add the icon and desktop file install -D -m644 "azuredatastudio-linux-x64/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/${_pkgname}.png" install -D -m644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" # Install the license file install -D -m644 "azuredatastudio-linux-x64/resources/app/LICENSE.txt" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" }