pkgbuilds/mssql-tools/PKGBUILD

28 lines
863 B
Bash
Raw Permalink Normal View History

2023-08-30 19:27:59 -06:00
# Maintainer: Karuna Murti <karuna.murti@gmail.com>
pkgname=mssql-tools
2023-11-17 16:20:32 -06:00
pkgver=18.2.1.1
2023-08-30 19:27:59 -06:00
pkgrel=1
pkgdesc="Microsoft® SQL Server® Tools for Linux"
arch=('x86_64')
url="https://www.microsoft.com/en-us/sql-server/sql-server-vnext-including-Linux"
license=('custom')
depends=('msodbcsql')
options=('!strip')
source=("https://packages.microsoft.com/rhel/8/prod/${pkgname}18-$pkgver-1.x86_64.rpm")
2023-11-17 16:20:32 -06:00
sha512sums=('c33936e0e1e2c74d72e02682fafa39d821352ae2783c8c580bdd96261628bacc7c90a12335ce09e65ce924024347e458189e3146a460575df9e8355b406227a5')
2023-08-30 19:27:59 -06:00
package() {
cd "$srcdir"
mv usr/share/{doc,licenses}
mv usr/share/licenses/{${pkgname}18,$pkgname}
mv opt/{${pkgname}18,$pkgname}
mv usr opt "$pkgdir"
install -dm755 "$pkgdir"/usr/bin/
cd "$pkgdir"/opt/$pkgname/bin
for bin in *; do
ln -s ../../opt/$pkgname/bin/"$bin" "$pkgdir"/usr/bin/"$bin"
done
}