You are not logged in.
Hi guys.
I was wondering why there is no upgrade for radare2 pkg.
In case anyone wants to get the latest stable version using yay -G radare2, here is the PKGBUILD:
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Guillermo Ramos <0xwille at gmail dot com>
pkgname=radare2
pkgver=4.2.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' 'zlib'
'lz4' 'xxhash' 'libxxhash.so' 'file' 'libuv')
makedepends=('meson')
options=('!emptydirs')
source=(https://github.com/radare/radare2/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('70426b7a482f233058b2f161063d55f4a6ff26019e4b4f35a96c74057796009a')
sha512sums=('aed37f6ff7ae3a25e809e8fbab3ef1c370dba80b7b8ef440a025edfbda23314ce20990b3e89589fe6bee427b2beebabd67a9e1def603e53ca5078bf32bdc4e6c')
sha256sums=('70426b7a482f233058b2f161063d55f4a6ff26019e4b4f35a96c74057796009a')
sha512sums=('aed37f6ff7ae3a25e809e8fbab3ef1c370dba80b7b8ef440a025edfbda23314ce20990b3e89589fe6bee427b2beebabd67a9e1def603e53ca5078bf32bdc4e6c')
build() {
cd ${pkgname}-${pkgver}
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}
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:
I hope it helps.
Regards
Last edited by sphraax (2021-02-21 21:48:12)
Offline
Moving to AUR issues
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Online
radare2 is in community, have you tried submitting that pkgbuild (or a diff ) to the maintainer ?
In order to prevent your version from clashing with the repo version , you could give your package
- a different pkgname , say radare42
- add a conflict with radare2
- have it provide radare2
The new package may also be suitable to submit to aur.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
The new package may also be suitable to submit to aur.
Again, please don't give advice like this if you don't know what you're talking about. Things like that are specifically banned from the AUR.
Last edited by Scimmia (2020-02-27 13:42:10)
Offline
You did notice I added the word may in that sentence to make clear I'm not sure if it's a good idea to do that ?
I think there have been cases where repo versions lagged behind upstream versions for whatever reason and newer stable versions were submitted to aur using a different package name.
If you are certain that's not allowed at all, please point me to the documentation.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
It's rule #1. https://wiki.archlinux.org/index.php/AU … guidelines
Yes, people have done it, and packages have been removed when they do. If they keep it up, users get removed, too.
Offline