diff options
author | ChucklesTheBeard | 2015-06-09 21:14:38 -0400 |
---|---|---|
committer | ChucklesTheBeard | 2015-06-09 21:14:38 -0400 |
commit | c27184bce9bcbbbafe4b5b0535f295d11fe81de0 (patch) | |
tree | 3d80b942a97f15ae237f4fa889a908146eca17dd | |
download | aur-c27184bce9bcbbbafe4b5b0535f295d11fe81de0.tar.gz |
Commit to AUR 4.0.0
- CKAN update to 1.6.22r2
- no packaging changes otherwise
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 66 | ||||
-rw-r--r-- | disable_version_checks.diff | 60 |
3 files changed, 146 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3fa3a3e4d6db --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = ckan-git + pkgdesc = A metadata repository and associated tools for searching, installing, and managing mods for Kerbal Space Program (KSP) + pkgver = v1.6.22.r2.g72052f3 + pkgrel = 1 + url = http://forum.kerbalspaceprogram.com/threads/100067- + arch = any + license = MIT + makedepends = git + makedepends = python2 + makedepends = python2-requests + depends = mono + depends = curl + provides = ckan + source = git://github.com/KSP-CKAN/CKAN + source = disable_version_checks.diff + md5sums = SKIP + md5sums = 0e79190f162aa2daf362b3c259e2e1fa + +pkgname = ckan-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b983fa9e5981 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,66 @@ +# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines +# for more information on packaging from GIT sources. + +# Maintainer: Andrew Smith <ChucklesTheBeard@gmail.com> +# Contributer: Patrik Plihal <patrik.plihal@gmail.com> + +pkgname=ckan-git +pkgver=v1.6.22.r2.g72052f3 +pkgrel=1 +pkgdesc="A metadata repository and associated tools for searching, installing, and managing mods for Kerbal Space Program (KSP)" +arch=('any') +url="http://forum.kerbalspaceprogram.com/threads/100067-" +license=('MIT') +provides=('ckan') +depends=('mono' 'curl') +makedepends=('git' 'python2' 'python2-requests') +source=('git://github.com/KSP-CKAN/CKAN' + 'disable_version_checks.diff') +md5sums=('SKIP' + '0e79190f162aa2daf362b3c259e2e1fa') + +pkgver() { + cd "$srcdir/CKAN" + git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + + # ignore certain version checks that return "inconclusive" exceptions for development builds + cd "$srcdir/CKAN/" + git apply $srcdir/disable_version_checks.diff +} + +build() { + cd "$srcdir/CKAN" + xbuild /verbosity:minimal CKAN.sln + + cd "$srcdir/CKAN/Cmdline" + mono ../Core/packages/ILRepack.1.25.0/tools/ILRepack.exe \ + /target:exe \ + /out:$srcdir/ckan.exe \ + bin/Debug/CmdLine.exe \ + bin/Debug/CKAN-GUI.exe \ + bin/Debug/ChinhDo.Transactions.dll \ + bin/Debug/CKAN.dll \ + bin/Debug/CommandLine.dll \ + bin/Debug/ICSharpCode.SharpZipLib.dll \ + bin/Debug/log4net.dll \ + bin/Debug/Newtonsoft.Json.dll \ + bin/Debug/INIFileParser.dll \ + bin/Debug/CurlSharp.dll +} + +check() { + #nunit-console4 is included in mono + + cd "$srcdir/CKAN/" + command nunit-console4 --exclude=FlakyNetwork Tests/bin/Debug/CKAN.Tests.dll +} + +package() { + mkdir -p "$pkgdir/usr/bin/" + cp $srcdir/ckan.exe "$pkgdir/usr/bin/ckan" +} + +# vim:set ts=2 sw=2 et: diff --git a/disable_version_checks.diff b/disable_version_checks.diff new file mode 100644 index 000000000000..dd602ca9a166 --- /dev/null +++ b/disable_version_checks.diff @@ -0,0 +1,60 @@ +From c64466c743a3c1a278692226b959924098704710 Mon Sep 17 00:00:00 2001 +From: ChucklesTheBeard <ChucklesTheBeard+git@gmail.com> +Date: Mon, 1 Jun 2015 18:34:25 -0400 +Subject: [PATCH] ignore certain tests + +--- + Tests/Core/Meta.cs | 2 ++ + Tests/Core/Types/Module.cs | 4 +++- + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/Tests/Core/Meta.cs b/Tests/Core/Meta.cs +index f2916be..3ed2f5e 100644 +--- a/Tests/Core/Meta.cs ++++ b/Tests/Core/Meta.cs +@@ -8,6 +8,7 @@ namespace Tests.Core + public class Meta + { + [Test] ++ [Ignore] + public void Version() + { + string version = CKAN.Meta.BuildVersion(); +@@ -23,6 +24,7 @@ namespace Tests.Core + } + + [Test] ++ [Ignore] + public void ReleaseNumber() + { + Version version = CKAN.Meta.ReleaseNumber(); +diff --git a/Tests/Core/Types/Module.cs b/Tests/Core/Types/Module.cs +index f94900a..d6bd106 100644 +--- a/Tests/Core/Types/Module.cs ++++ b/Tests/Core/Types/Module.cs +@@ -84,6 +84,7 @@ namespace Tests.Core.Types + } + + [Test] ++ [Ignore] + public void IsSpecSupported() + { + if (CKAN.Meta.ReleaseNumber() == null) +@@ -111,6 +112,7 @@ namespace Tests.Core.Types + } + + [Test] ++ [Ignore] + public void FutureModule() + { + if (CKAN.Meta.ReleaseNumber() == null) +@@ -127,4 +129,4 @@ namespace Tests.Core.Types + + } + } +-} +\ No newline at end of file ++} +-- +2.4.2 + |