jobextra/gdb/PKGBUILD

86 lines
2.4 KiB
Bash
Raw Normal View History

2022-03-20 13:34:07 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
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=01
2022-03-20 13:34:07 +01:00
pkgdesc='The GNU Debugger'
arch=(x86_64)
url='https://www.gnu.org/software/gdb/'
2023-02-03 01:24:50 +01:00
makedepends=(glibc gcc-libs texinfo python guile ncurses expat xz mpfr
boost source-highlight readline)
source=(https://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig})
# readline8.patch)
2023-02-03 01:24:50 +01:00
#prepare() {
# cd gdb-$pkgver
#
# # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
# sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
#}
2022-03-20 13:34:07 +01:00
build() {
cd gdb-$pkgver
2023-02-03 01:24:50 +01:00
# patch -Np1 -i ../readline8.patch
2023-02-03 01:24:50 +01:00
2022-03-20 13:34:07 +01:00
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
2023-02-03 01:24:50 +01:00
# --with-guile=guile-2.2 \
2022-03-20 13:34:07 +01:00
}
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/"
}
#---- license gpg-key sha256sums ----
2022-03-20 13:34:07 +01:00
license=(GPL3)
2022-03-20 13:34:07 +01:00
validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker
sha256sums=(115ad5c18d69a6be2ab15882d365dda2a2211c14f480b3502c6eba576e2e95a0 # gdb-13.1.tar.xz
d14d21a672624767c609582d1c8eee91661e580a2fb08f7c38b35332c6d76dad) # gdb-13.1.tar.xz.sig
2023-02-03 01:24:50 +01:00
## 046740452d810d70305a4e1c9e6f97c869df9f910dc49a5dcbff69b9c9006d7c gdb-13.1-01-x86_64.pkg.tar.lz
## ae6ecdb95095c0f592c2ee8dec7ecf1ef1e8988a29a0c3ab85c06bbe2e83bf39 gdb-common-13.1-01-x86_64.pkg.tar.lz
2023-02-03 01:24:50 +01:00