# Maintainer: William Turner pkgname=azuredatastudio pkgver=1.5.1 pkgrel=1 pkgdesc="Azure Data Studio is a data management tool that enables you to work with SQL Server, Azure SQL DB and SQL DW (formerly SQL Operations Studio)." arch=('x86_64') url="https://github.com/Microsoft/azuredatastudio" license=('custom: microsoft') depends=('fontconfig' 'libxtst' 'gtk2' 'python' 'cairo' 'alsa-lib' 'nss' 'gcc-libs' 'glibc' 'libxss' 'gconf' 'libxkbfile' 'libunwind' 'libsecret' 'curl') makedepends=('sed') optdepends=('krb5: Windows authentication support') provides=('sqlops') conflicts=('sqlops') options=('staticlibs') source=("https://github.com/Microsoft/${pkgname}/releases/download/${pkgver}/${pkgname}-linux-${pkgver}.tar.gz" "${pkgname}.desktop") sha256sums=('4f5f56e66488a81d58f215960755c3d252c2218ef300a6dec5593140d97f5fee' '4f7fa4bbc74249a1494f4df6aaba8e60c670a478c78bd73b4f0d19e4c802f5c5') package() { install -d "${pkgdir}/opt/${pkgname}" cp -a "${pkgname}-linux-x64/"* "${pkgdir}/opt/${pkgname}" # Symlink the startup script in /usr/bin install -d "${pkgdir}/usr/bin" ln -s "/opt/${pkgname}/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" # Also add an alias for the previous name to hopefully not break things too much ln -s "/opt/${pkgname}/bin/${pkgname}" "${pkgdir}/usr/bin/sqlops" # Add the icon and desktop file install -D -m644 "${pkgname}-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" sed -i "s/@@pkgname@@/${pkgname}/g" "${pkgdir}/usr/share/applications/${pkgname}.desktop" # Install the license file install -D -m644 "${pkgname}-linux-x64/resources/app/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }