[arch-commits] Commit in appstream-generator/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Jan 24 22:52:31 UTC 2021
Date: Sunday, January 24, 2021 @ 22:52:31
Author: arojas
Revision: 829286
Fix segfaults
Modified:
appstream-generator/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-24 22:29:20 UTC (rev 829285)
+++ PKGBUILD 2021-01-24 22:52:31 UTC (rev 829286)
@@ -2,7 +2,7 @@
pkgname=appstream-generator
pkgver=0.8.2
-pkgrel=5
+pkgrel=6
pkgdesc="A fast AppStream metadata generator"
arch=(x86_64)
url="https://github.com/ximion/appstream-generator"
@@ -9,20 +9,20 @@
license=(GPL3)
depends=(appstream libarchive librsvg optipng glibd)
makedepends=(ldc meson ninja mustache-d curl gir-to-d gobject-introspection docbook-xsl)
-source=($pkgname-$pkgver.tar.gz::"https://github.com/ximion/appstream-generator/archive/v$pkgver.tar.gz")
-sha256sums=('41a6563dde303adcd60f28fbd89f14eb2a4083cec8f1021c22409c769088fdc2')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/ximion/appstream-generator/archive/v$pkgver.tar.gz"
+ appstream-generator-segfault.patch::"https://github.com/ximion/appstream-generator/commit/c4cfd008.patch")
+sha256sums=('41a6563dde303adcd60f28fbd89f14eb2a4083cec8f1021c22409c769088fdc2'
+ 'b80864eb21a238d74be157a76913627c98f2b934ffc3d96615486d2a13a2f9e7')
prepare() {
- mkdir -p build
+ patch -d $pkgname-$pkgver -p1 -i ../appstream-generator-segfault.patch
}
build() {
- cd build
- meson ../$pkgname-$pkgver -Ddownload-js=false --prefix=/usr
- ninja
+ meson build $pkgname-$pkgver -Ddownload-js=false --prefix=/usr
+ ninja -C build
}
package() {
- cd build
- DESTDIR="$pkgdir" ninja install
+ DESTDIR="$pkgdir" ninja install -C build
}
More information about the arch-commits
mailing list