[arch-commits] Commit in radare2/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Thu Apr 4 12:10:16 UTC 2019


    Date: Thursday, April 4, 2019 @ 12:10:13
  Author: anthraxx
Revision: 449136

upgpkg: radare2 3.4.1-1

Modified:
  radare2/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++++++++++++++++++-----------
 1 file changed, 22 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-04 12:09:27 UTC (rev 449135)
+++ PKGBUILD	2019-04-04 12:10:13 UTC (rev 449136)
@@ -2,31 +2,42 @@
 # Contributor: Guillermo Ramos <0xwille at gmail dot com>
 
 pkgname=radare2
-pkgver=3.3.0
+pkgver=3.4.1
 pkgrel=1
 pkgdesc='Open-source tools to disasm, debug, analyze and manipulate binary files'
 url='https://radare.org'
 arch=('x86_64')
 license=('GPL3' 'LGPL3')
-depends=('sh' 'capstone' 'libcapstone.so' 'openssl' 'libzip')
+depends=('sh' 'capstone' 'libcapstone.so' 'openssl' 'libzip' 'zlib'
+         'lz4' 'xxhash' 'libxxhash.so' 'file' 'libuv')
+makedepends=('meson')
 options=('!emptydirs')
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/radare/radare2/archive/${pkgver}.tar.gz)
-sha256sums=('3c092bdf8676d7d49537926258c50557bca98d7d669babfed6113ff82c403bcb')
-sha512sums=('4db9d547b72b952babfd67c8cef2b94fdac9d6fd1194fb50b2ebab538d5bbda0bab4b704d5af64ef684ce9311634c8e04465906a1e7e706b211427054fe0721a')
+sha256sums=('3df1f9a79ef64f9c9205453c735ac5a29ef8e88f336fd16c5bbaa64b1dc0c975')
+sha512sums=('8803d54a8158aedd5900792bd013dad440a14abbb6fcbdf963e5d9031f30e66865479f29877e6f656ab01b59b3138458daf52f1eaeb462ec767c128d0b12640a')
 
 build() {
   cd ${pkgname}-${pkgver}
-  ./configure --prefix=/usr \
-    --with-syscapstone \
-    --with-syszip \
-    --with-openssl
-  make
+  touch libr/config.mk
+  arch-meson build \
+    -D use_sys_capstone=true \
+    -D use_sys_magic=true \
+    -D use_sys_zip=true \
+    -D use_sys_zlib=true \
+    -D use_sys_lz4=true \
+    -D use_sys_xxhash=true \
+    -D use_sys_openssl=true \
+    -D use_libuv=true \
+    -D use_webui=true
+  ninja -C build
 }
 
 package() {
   cd ${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" install
-  install -Dm 644 doc/zsh/* -t "${pkgdir}/usr/share/zsh/site-functions"
+  DESTDIR="${pkgdir}" ninja -C build install
+  cp -r doc/* "${pkgdir}/usr/share/doc/radare2"
+  ln -s /usr/bin/radare2 "${pkgdir}/usr/bin/r2"
+  ln -s /usr/share/man/man1/radare2.1.gz "${pkgdir}/usr/share/man/man1/r2.1.gz"
 }
 
 # vim: ts=2 sw=2 et:


More information about the arch-commits mailing list