[arch-commits] Commit in nuget/trunk (PKGBUILD nuget nuget.install nuget.pc)
Daniel Isenmann
daniel at archlinux.org
Wed May 6 07:01:26 UTC 2015
Date: Wednesday, May 6, 2015 @ 09:01:26
Author: daniel
Revision: 238533
upgpkg: nuget 1:2.8.5-1
Fixing several build stuff in the PKGBUILD, building from source...
Added:
nuget/trunk/nuget.pc
Modified:
nuget/trunk/PKGBUILD
nuget/trunk/nuget
nuget/trunk/nuget.install
---------------+
PKGBUILD | 37 ++++++++++++++++++++++++++++---------
nuget | 5 +++--
nuget.install | 16 +++++-----------
nuget.pc | 10 ++++++++++
4 files changed, 46 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-05-06 06:18:10 UTC (rev 238532)
+++ PKGBUILD 2015-05-06 07:01:26 UTC (rev 238533)
@@ -2,21 +2,40 @@
# Contributor: wenLiangcan <boxeed at gmail dot com>
pkgname=nuget
-pkgver=2.8.60318.667
+pkgver=2.8.5
pkgrel=1
pkgdesc="Package manager for .NET."
arch=('any')
url="http://www.nuget.org"
-license=('Apache')
+license=('APACHE')
depends=('mono' 'sh')
-source=("http://nuget.org/nuget.exe"
- "${pkgname}")
-md5sums=('c0888dc1e2c4da4e621719a69e1cc0d2'
- '7d52a5ad1c8ba770f57940457c26644f')
+source=(https://sources.archlinux.org/other/packages/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ "${pkgname}"
+ "${pkgname}.pc"
+ "https://sources.archlinux.org/other/packages/${pkgname}/xdt.tar.gz")
+md5sums=('38793be9c7748960b1951ff436e9863e'
+ 'dce06048fb6eb42beb69001adb2fd530'
+ 'ffb7d95fb39f72c9619c72db91ec36a0'
+ '61580e6d1e1ecf80f8f2caf4a43b7b71')
install="${pkgname}.install"
+epoch=1
+build() {
+ xbuild /p:Configuration=Release xdt/XmlTransform/Microsoft.Web.XmlTransform.csproj
+ cd ${srcdir}/${pkgname}-${pkgver}
+ xbuild Build/Build.proj /p:Configuration=Release /p:TreatWarningsAsErrors=false /tv:4.0 /p:TargetFrameworkVersion=v4.5 /p:Configuration="Mono Release" /t:BuildMono
+}
+
package() {
- install -Dm755 "${pkgname}.exe" "${pkgdir}/opt/${pkgname}/${pkgname}.exe"
- install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+
+mkdir -p ${pkgdir}/lib/pkgconfig
+install -m 0644 ${srcdir}/nuget.pc ${pkgdir}/lib/pkgconfig/nuget.pc
+
+install -d ${pkgdir}/lib/nuget
+install -m 0644 ${srcdir}/nuget-2.8.5/src/CommandLine/obj/Mono\ Release/NuGet.exe ${pkgdir}/lib/nuget/
+install -m 0644 ${srcdir}/nuget-2.8.5/src/Core/obj/Mono\ Release/NuGet.Core.dll ${pkgdir}/lib/nuget/
+install -m 0644 ${srcdir}/xdt/XmlTransform/obj/Release/Microsoft.Web.XmlTransform.dll ${pkgdir}/lib/nuget/
+
+install -d ${pkgdir}/usr/bin
+install -m 0755 ${srcdir}/nuget ${pkgdir}/usr/bin/nuget
}
-
Modified: nuget
===================================================================
--- nuget 2015-05-06 06:18:10 UTC (rev 238532)
+++ nuget 2015-05-06 07:01:26 UTC (rev 238533)
@@ -1,3 +1,4 @@
#!/bin/sh
-
-mono --runtime=v4.0 /opt/nuget/nuget.exe $*
+MONO_PATH=/usr/lib/nuget:$MONO_PATH
+export MONO_PATH
+exec mono $MONO_OPTIONS --runtime=v4.0 /usr/lib/nuget/NuGet.exe $*
Modified: nuget.install
===================================================================
--- nuget.install 2015-05-06 06:18:10 UTC (rev 238532)
+++ nuget.install 2015-05-06 07:01:26 UTC (rev 238533)
@@ -1,16 +1,10 @@
post_install() {
- cat << EOF
-In order to use NuGet make sure that you execute:
-
-mozroots --sync --import
-
-If you want to import the certificate system-wide then execute as root:
-
-mozroots --sync --import --machine
-
-EOF
+ post_upgrade
}
post_upgrade() {
- post_install
+ mozroots --import --machine --sync
+ certmgr -ssl -m https://go.microsoft.com
+ certmgr -ssl -m https://nugetgallery.blob.core.windows.net
+ certmgr -ssl -m https://nuget.org
}
Added: nuget.pc
===================================================================
--- nuget.pc (rev 0)
+++ nuget.pc 2015-05-06 07:01:26 UTC (rev 238533)
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+Libraries=${prefix}/lib/nuget/NuGet.Core.dll ${prefix}/lib/nuget/Microsoft.Web.XmlTransform.dll
+
+Name: nuget
+Description: Library for acessing Microsoft NuGet repositories
+Version: %{version}
+Libs: -r:${libdir}/nuget/NuGet.Core.dll -r:${libdir}/nuget/Microsoft.Web.XmlTransform.dll
More information about the arch-commits
mailing list