[arch-commits] Commit in gdb/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Anatol Pomozov
anatolik at gemini.archlinux.org
Tue Jan 18 17:22:55 UTC 2022
Date: Tuesday, January 18, 2022 @ 17:22:55
Author: anatolik
Revision: 434686
archrelease: copy trunk to testing-x86_64
Added:
gdb/repos/testing-x86_64/
gdb/repos/testing-x86_64/PKGBUILD
(from rev 434685, gdb/trunk/PKGBUILD)
----------+
PKGBUILD | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
Copied: gdb/repos/testing-x86_64/PKGBUILD (from rev 434685, gdb/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-01-18 17:22:55 UTC (rev 434686)
@@ -0,0 +1,72 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=gdb
+# gdb-common is a package that contains files common for all cross compiled versions
+# of gdb (for arm/avr/...)
+pkgname=(gdb gdb-common)
+pkgver=11.2
+pkgrel=1
+pkgdesc='The GNU Debugger'
+arch=(x86_64)
+url='https://www.gnu.org/software/gdb/'
+license=(GPL3)
+makedepends=(glibc gcc-libs texinfo python guile ncurses expat xz mpfr source-highlight
+ readline)
+source=(https://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
+sha1sums=('7c72b1d4a38bb6e155aaad29f4c1abf818b4595d'
+ 'SKIP')
+b2sums=('66ce7e12c99c33c8b4e6ababa673204aab525e72c90ba54cc34a5fd69948a09dc2a9ef2050764b2464544231b1d1a6431279c2877388551ca6fbf384a3f9b464'
+ 'SKIP')
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
+
+prepare() {
+ cd gdb-$pkgver
+
+ # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+}
+
+build() {
+ cd gdb-$pkgver
+
+ mkdir -p build && cd build
+ ../configure \
+ --prefix=/usr \
+ --disable-nls \
+ --enable-source-highlight \
+ --enable-tui \
+ --with-system-readline \
+ --with-python=/usr/bin/python \
+ --with-guile=guile-2.2 \
+ --with-system-gdbinit=/etc/gdb/gdbinit
+ make
+}
+
+package_gdb-common() {
+ depends=(python guile)
+
+ cd gdb-$pkgver/build
+ make -C gdb/data-directory DESTDIR="$pkgdir" install
+}
+
+package_gdb() {
+ depends=(glibc ncurses libncursesw.so gcc-libs expat xz mpfr source-highlight gdb-common=$pkgver
+ readline libreadline.so guile python libelf)
+ backup=(etc/gdb/gdbinit)
+
+ cd gdb-$pkgver/build
+ make -C gdb DESTDIR="$pkgdir" install
+ make -C gdbserver DESTDIR="$pkgdir" install
+
+ # install "custom" system gdbinit
+ install -dm 755 "$pkgdir/etc/gdb"
+ touch "$pkgdir/etc/gdb/gdbinit"
+
+ # comes from gdb-common
+ rm -r "$pkgdir/usr/share/gdb/"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list