diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index efd4502..bd7733c 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -1,17 +1,18 @@ # $Id$ # Maintainer: Maxime Gauduin # Contributor: Max Liebkies +# Contributor: Florian Maunier pkgbase=dotnet-core -pkgname=('dotnet-host' 'dotnet-runtime') +pkgname=('dotnet-host' 'dotnet-runtime' 'aspnetcore-runtime') pkgver=2.1.0 -pkgrel=1 +pkgrel=2 arch=('x86_64') url='https://www.microsoft.com/net/core' license=('MIT') options=('staticlibs') -source=('https://download.microsoft.com/download/9/1/7/917308D9-6C92-4DA5-B4B1-B4A19451E2D2/dotnet-runtime-2.1.0-linux-x64.tar.gz') -sha256sums=('fee8973feb7f964a20be8ed7ff8e277d343b7a9ee032af2f4deb90913e58f638') +source=('https://download.microsoft.com/download/9/1/7/917308D9-6C92-4DA5-B4B1-B4A19451E2D2/aspnetcore-runtime-2.1.0-linux-x64.tar.gz') +sha256sums=('1f75c6d98cf729f74dfbeb5a36207567912e0e61e9bac0bf0f72046fa7a81d4b') package_dotnet-host() { pkgdesc='A generic driver for the .NET Core Command Line Interface' @@ -29,9 +30,20 @@ package_dotnet-runtime() { provides=('dotnet-runtime-2.1') conflicts=('dotnet-runtime-2.1') - install -dm 755 "${pkgdir}"/{opt/dotnet,usr/share/licenses} - cp -dr --no-preserve='ownership' shared "${pkgdir}"/opt/dotnet/ + install -dm 755 "${pkgdir}"/{opt/dotnet/shared,usr/share/licenses} + cp -dr --no-preserve='ownership' shared/Microsoft.NETCore* "${pkgdir}"/opt/dotnet/shared/ ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-runtime } +package_aspnetcore-runtime() { + pkgdesc='The ASP.NET Core runtime' + depends=('dotnet-runtime') + provides=('aspnetcore-runtime-2.1') + conflicts=('aspnetcore-runtime-2.1') + + install -dm 755 "${pkgdir}"/{opt/dotnet/shared,usr/share/licenses} + cp -dr --no-preserve='ownership' shared/Microsoft.AspNetCore* "${pkgdir}"/opt/dotnet/shared/ + ln -s dotnet-host "${pkgdir}"/usr/share/licenses/aspnetcore-runtime +} + # vim: ts=2 sw=2 et: