Date: Saturday, October 15, 2016 @ 11:42:33
  Author: arojas
Revision: 192297

Update to 0.6.0

Modified:
  appstream-generator/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++--------------------
 1 file changed, 15 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-10-15 10:52:38 UTC (rev 192296)
+++ PKGBUILD    2016-10-15 11:42:33 UTC (rev 192297)
@@ -2,36 +2,31 @@
 # Maintainer: Antonio Rojas <aro...@archlinux.org>
 
 pkgname=appstream-generator
-pkgver=0.5.0
-pkgrel=2
+pkgver=0.6.0
+pkgrel=1
 pkgdesc="A fast AppStream metadata generator"
 arch=(i686 x86_64)
 url="https://github.com/ximion/appstream-generator";
 license=(GPL3)
-depends=(appstream curl libarchive librsvg lmdb)
-makedepends=(gdc dub)
-source=("https://github.com/ximion/appstream-generator/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz";
-        
"https://github.com/ximion/d-bindings/archive/cec0ebdc70963fa92a1ed02877b2c794a634d0f7.zip";
-        
asgen-fix-i686-build.patch::"https://github.com/ximion/appstream-generator/commit/3c0bdb95.patch";
-        
asgen-fix-i686-build-2.patch::"https://github.com/ximion/appstream-generator/commit/608550b4.patch";)
-sha256sums=('446b33752a65e4b2206e69848a4ad8c062cf4d5ff4af908253754651368eff39'
-            '6899abfd4c9bea7e634d86bc0b33caffe76ed40e86aee6b57c741a2aec58d047'
-            '8bf027d99afe1d19fee62508394a873ebe0d96e635c1ed9666edc4e42cd88487'
-            'cb99014886504ca6d08eae660bc0afcb89545d1512b8c75853e2eb95bd64aafd')
+depends=(appstream libarchive librsvg lmdb)
+makedepends=(dmd meson ninja mustache-d curl)
+source=("https://github.com/ximion/appstream-generator/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz";)
+sha256sums=('68f538f2163004b8e2171c694233af401c2cd47a9ea1472265753a48b20600e3')
 
 prepare() {
-  cd $pkgname-$pkgver
-# Fix i686 build
-  patch -p1 -i ../asgen-fix-i686-build.patch
-  patch -p1 -i ../asgen-fix-i686-build-2.patch
+  mkdir -p build
+
+# fix build
+  sed -e 's/core.sys.linux.stdio/core.sys.posix.stdio/' -i 
$pkgname-$pkgver/src/asgen/utils.d
 }
 
 build() {
-  cd $pkgname-$pkgver
-  make
+  cd build
+  meson ../$pkgname-$pkgver -Ddownload_js=false --prefix=/usr
+  ninja -j1
 }
 
 package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
+  cd build
+  DESTDIR="$pkgdir" ninja install
 }

Reply via email to