[arch-commits] Commit in riscv64-linux-gnu-gdb/repos (2 files)
Anatol Pomozov
anatolik at archlinux.org
Tue Oct 1 18:14:50 UTC 2019
Date: Tuesday, October 1, 2019 @ 18:14:49
Author: anatolik
Revision: 512375
archrelease: copy trunk to community-testing-x86_64
Added:
riscv64-linux-gnu-gdb/repos/community-testing-x86_64/
riscv64-linux-gnu-gdb/repos/community-testing-x86_64/PKGBUILD
(from rev 512374, riscv64-linux-gnu-gdb/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: riscv64-linux-gnu-gdb/repos/community-testing-x86_64/PKGBUILD (from rev 512374, riscv64-linux-gnu-gdb/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2019-10-01 18:14:49 UTC (rev 512375)
@@ -0,0 +1,51 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+_target=riscv64-linux-gnu
+pkgname=$_target-gdb
+pkgver=8.3.1
+pkgrel=1
+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 guile2.0 gdb-common mpfr)
+options=(!emptydirs)
+source=(https://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig})
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
+sha256sums=('1e55b4d7cdca7b34be12f4ceae651623aa73b2fd640152313f9f66a7149757c4'
+ 'SKIP')
+
+prepare() {
+ cd gdb-$pkgver
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+}
+
+build() {
+ cd gdb-$pkgver
+
+ ./configure \
+ --target=$_target \
+ --prefix=/usr \
+ --enable-languages=c,c++ \
+ --disable-multilib \
+ --enable-interwork \
+ --with-system-readline \
+ --disable-nls \
+ --with-python=/usr/bin/python3 \
+ --with-guile=guile-2.0 \
+ --with-system-gdbinit=/etc/gdb/gdbinit
+
+ make
+}
+
+package() {
+ cd gdb-$pkgver
+
+ 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