[arch-commits] Commit in appstream-generator/trunk (2 files)
Antonio Rojas
arojas at archlinux.org
Tue Apr 25 20:40:15 UTC 2017
Date: Tuesday, April 25, 2017 @ 20:40:14
Author: arojas
Revision: 225340
liblphobos 1.2 rebuild
Added:
appstream-generator/trunk/appstream-generator-buildpath.patch
Modified:
appstream-generator/trunk/PKGBUILD
-------------------------------------+
PKGBUILD | 15 ++++++++++++---
appstream-generator-buildpath.patch | 14 ++++++++++++++
2 files changed, 26 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-04-25 20:06:11 UTC (rev 225339)
+++ PKGBUILD 2017-04-25 20:40:14 UTC (rev 225340)
@@ -3,7 +3,7 @@
pkgname=appstream-generator
pkgver=0.6.3
-pkgrel=1
+pkgrel=2
pkgdesc="A fast AppStream metadata generator"
arch=(i686 x86_64)
url="https://github.com/ximion/appstream-generator"
@@ -10,11 +10,20 @@
license=(GPL3)
depends=(appstream libarchive librsvg lmdb liblphobos)
makedepends=(ldc meson ninja mustache-d curl)
-source=("https://github.com/ximion/appstream-generator/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
-sha256sums=('927ac57571b4e033801635ef9446de1125c9fda00daa39000b0c2392465e34bb')
+source=("https://github.com/ximion/appstream-generator/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
+ appstream-generator-ldc-1.2.patch::"https://github.com/ximion/appstream-generator/commit/07e46bae.patch"
+ appstream-generator-buildpath.patch)
+sha256sums=('927ac57571b4e033801635ef9446de1125c9fda00daa39000b0c2392465e34bb'
+ '296706113ad8055daa317709079ba39d5a27a832561b077c210e4263db62e133'
+ '28ecd93c873956493829b0afa3f81d47239428ef765359f1871d1acb3ab015f9')
prepare() {
mkdir -p build
+
+# Fix build with LDC 1.2
+ cd $pkgname-$pkgver
+ patch -p1 -i ../appstream-generator-ldc-1.2.patch
+ patch -p1 -i ../appstream-generator-buildpath.patch
}
build() {
Added: appstream-generator-buildpath.patch
===================================================================
--- appstream-generator-buildpath.patch (rev 0)
+++ appstream-generator-buildpath.patch 2017-04-25 20:40:14 UTC (rev 225340)
@@ -0,0 +1,14 @@
+diff --git a/src/asgen/zarchive.d b/src/asgen/zarchive.d
+index 17a40d6..c7a1181 100644
+--- a/src/asgen/zarchive.d
++++ b/src/asgen/zarchive.d
+@@ -572,7 +572,8 @@ unittest
+
+ writeln ("TEST: ", "Extracting a tarball");
+
+- import std.file : buildPath, tempDir;
++ import std.file : tempDir;
++ import std.path: buildPath;
+ import asgen.utils : getTestSamplesDir;
+
+ auto archive = buildPath (getTestSamplesDir (), "test.tar.xz");
More information about the arch-commits
mailing list