[arch-commits] Commit in riscv64-linux-gnu-gdb/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Thu Dec 2 23:36:44 UTC 2021
Date: Thursday, December 2, 2021 @ 23:36:43
Author: foutrelis
Revision: 1063180
archrelease: copy trunk to community-staging-x86_64
Added:
riscv64-linux-gnu-gdb/repos/community-staging-x86_64/
riscv64-linux-gnu-gdb/repos/community-staging-x86_64/PKGBUILD
(from rev 1063179, riscv64-linux-gnu-gdb/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: riscv64-linux-gnu-gdb/repos/community-staging-x86_64/PKGBUILD (from rev 1063179, riscv64-linux-gnu-gdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-02 23:36:43 UTC (rev 1063180)
@@ -0,0 +1,53 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+_target=riscv64-linux-gnu
+pkgname=$_target-gdb
+pkgver=11.1
+pkgrel=2
+pkgdesc='The GNU Debugger for the 32bit and 64bit RISC-V target'
+arch=(x86_64)
+url='https://www.gnu.org/software/gdb/'
+license=(GPL3)
+depends=(xz ncurses expat python guile gdb-common mpfr libelf)
+options=(!emptydirs)
+source=(https://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig})
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
+sha256sums=('cccfcc407b20d343fb320d4a9a2110776dd3165118ffd41f4b1b162340333f94'
+ 'SKIP')
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker <brobecker at adacore.com>
+
+prepare() {
+ cd gdb-$pkgver
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+}
+
+build() {
+ cd gdb-$pkgver
+
+ mkdir -p build && cd build
+ ../configure \
+ --target=$_target \
+ --prefix=/usr \
+ --enable-languages=c,c++ \
+ --disable-multilib \
+ --enable-interwork \
+ --with-system-readline \
+ --disable-nls \
+ --with-python=/usr/bin/python \
+ --with-guile=guile-2.2 \
+ --with-system-gdbinit=/etc/gdb/gdbinit
+
+ make
+}
+
+package() {
+ cd gdb-$pkgver/build
+
+ make -C gdb DESTDIR=$pkgdir install
+
+ # Following files conflict with 'gdb'/'gdb-common' packages
+ rm -r "$pkgdir"/usr/include/gdb/
+ rm -r "$pkgdir"/usr/share/gdb/
+ rm -r "$pkgdir"/usr/share/info/
+ rm -r "$pkgdir"/usr/share/man/man5/
+}
More information about the arch-commits
mailing list