Skip to content

Instantly share code, notes, and snippets.

@codywd
Created May 6, 2018 20:39
Show Gist options
  • Save codywd/c0c7dd458704f3f79b3efb5cdd94c24e to your computer and use it in GitHub Desktop.
Save codywd/c0c7dd458704f3f79b3efb5cdd94c24e to your computer and use it in GitHub Desktop.
PKGBUILD for dotnet sdk
# $Id$
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Max Liebkies <mail@maxliebkies.de>
pkgname=dotnet-sdk
pkgver=2.1.300
pkgrel=1
pkgdesc='The .NET Core SDK'
arch=('any')
url='https://www.microsoft.com/net/core'
license=('MIT')
depends=('dotnet-runtime')
options=('staticlibs')
conflicts=('dotnet-sdk-2.0')
provides=('dotnet-sdk-2.0')
source=('https://download.microsoft.com/download/3/7/C/37C0D2E3-2056-4F9A-A67C-14DEFBD70F06/dotnet-sdk-2.1.300-preview2-008530-linux-x64.tar.gz')
sha512sums=('034863bdb94a4e752d286eeac10638a012c4bae94a9bff46ee96fb7ea733554f0083d989ecf983274fcbe5c27974e16a7287c3bcca98626380b12e811fdd9174')
package() {
install -dm 755 "${pkgdir}"/{opt/dotnet,usr/share/licenses}
cp -dr --no-preserve='ownership' sdk "${pkgdir}"/opt/dotnet/
ln -s dotnet-runtime "${pkgdir}"/usr/share/licenses/dotnet-sdk
}
# vim: ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment