Skip to content

Instantly share code, notes, and snippets.

@rnbguy
Last active September 6, 2019 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnbguy/04f91ddab980c2ae56e0e5af2d387179 to your computer and use it in GitHub Desktop.
Save rnbguy/04f91ddab980c2ae56e0e5af2d387179 to your computer and use it in GitHub Desktop.
PKGBUILD for dotnet-sdk
# Maintainer: Ranadeep Biswas <ranadip.bswas@gmail.com>
pkgname=dotnet-sdk
pkgver=2.2.401
pkgrel=1
pkgdesc='.NET Core is a cross-platform version of .NET for building websites, services, and console apps.'
arch=('x86_64')
url='https://dotnet.microsoft.com'
license=('MIT')
provides=('dotnet-sdk')
conflicts=('dotnet-sdk')
options=(staticlibs)
source=("$pkgname-$pkgver.tar.gz::https://download.visualstudio.microsoft.com/download/pr/228832ea-805f-45ab-8c88-fa36165701b9/16ce29a06031eeb09058dee94d6f5330/$pkgname-$pkgver-linux-x64.tar.gz")
sha512sums=('08E1FCAFA4F898C80FF5E88EEB40C7497B4F5651AF3B8EC85F65A3DAA2F1509A766D833477358D3FF83D179E014034AB0C48120847EF24736C8D1A5B67FEC10B')
package() {
install -Dm755 -t $pkgdir/opt/dotnet-sdk $srcdir/dotnet
cp -dr --no-preserve=ownership $srcdir/{host,shared,sdk} $pkgdir/opt/dotnet-sdk
install -Dm644 -t $pkgdir/usr/share/licenses/dotnet-sdk $srcdir/{LICENSE,ThirdPartyNotices}.txt
install -d $pkgdir/usr/bin
ln -s /opt/dotnet-sdk/dotnet $pkgdir/usr/bin/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment