Date: Tuesday, February 21, 2023 @ 17:09:32
Author: anatolik
Revision: 469405
archrelease: copy trunk to testing-x86_64
Added:
gdb/repos/testing-x86_64/
gdb/repos/testing-x86_64/PKGBUILD
(from rev 469404, gdb/trunk/PKGBUILD)
gdb/repos/testing-x86_64/keys/
----------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
Copied: gdb/repos/testing-x86_64/PKGBUILD (from rev 469404, gdb/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2023-02-21 17:09:32 UTC (rev 469405)
@@ -0,0 +1,64 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Anatol Pomozov <[email protected]>
+# Contributor: Allan McRae <[email protected]>
+# Contributor: Jan de Groot <[email protected]>
+
+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=13.1
+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 boost readline)
+source=(https://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
+sha1sums=('6f0f5f905085f447672d9f52af66b42207d56e46'
+ 'SKIP')
+b2sums=('ab3a77ef35d21597dd1299787eebc422c3ca9764d0866223752c3036c0f9e198bf25ab4730bf6e7025bc2db148c66e98b191e15abc2d69c3088aed146728beef'
+ 'SKIP')
+validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
+
+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-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: