Created
May 6, 2018 20:38
-
-
Save codywd/745b6861848c4dafec996de0432bddfd to your computer and use it in GitHub Desktop.
PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: Maxime Gauduin <alucryd@archlinux.org> | |
# Contributor: Max Liebkies <mail@maxliebkies.de> | |
pkgbase=dotnet-core | |
pkgname=('dotnet-host' 'dotnet-runtime') | |
pkgver=2.1.0 | |
pkgrel=1 | |
arch=('x86_64') | |
url='https://www.microsoft.com/net/core' | |
license=('MIT') | |
depends=('gcc-libs' 'glibc') | |
options=('staticlibs') | |
source=('https://download.microsoft.com/download/9/0/F/90F8F18D-CD21-4A79-ACDC-AF4CB95F490C/dotnet-runtime-2.1.0-preview2-26406-04-linux-x64.tar.gz') | |
sha512sums=('9f8dce51f0438e0cff5fbdf38a60c620d879825902aae4d59ec026c6cfd0f6d2237f220a5346836e6e3c50a5be7b357443ab4ae01f85c596abceec12a8dc29d7') | |
package_dotnet-host() { | |
pkgdesc='A generic driver for the .NET Core Command Line Interface' | |
install -dm 755 "${pkgdir}"/{opt/dotnet,usr/bin,usr/share/licenses/dotnet-host} | |
cp -dr --no-preserve='ownership' dotnet host "${pkgdir}"/opt/dotnet/ | |
install -m 644 *.txt -t "${pkgdir}"/usr/share/licenses/dotnet-host/ | |
ln -s /opt/dotnet/dotnet "${pkgdir}"/usr/bin/ | |
} | |
package_dotnet-runtime() { | |
pkgdesc='The .NET Core runtime' | |
depends+=('dotnet-host' 'icu' 'krb5' 'libunwind' 'lldb' 'lttng-ust' 'openssl-1.0' 'zlib' | |
'libcurl.so' 'libuuid.so') | |
provides=('dotnet-runtime-2.0') | |
conflicts=('dotnet-runtime-2.0') | |
install -dm 755 "${pkgdir}"/{opt/dotnet,usr/share/licenses} | |
cp -dr --no-preserve='ownership' shared "${pkgdir}"/opt/dotnet/ | |
ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-runtime | |
} | |
# vim: ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment