Date: Sunday, September 27, 2020 @ 13:31:37 Author: anthraxx Revision: 396713
archrelease: copy trunk to extra-x86_64 Added: gdb/repos/extra-x86_64/PKGBUILD (from rev 396712, gdb/trunk/PKGBUILD) Deleted: gdb/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 152 ++++++++++++++++++++++++++++--------------------------------- 1 file changed, 71 insertions(+), 81 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-09-27 13:31:33 UTC (rev 396712) +++ PKGBUILD 2020-09-27 13:31:37 UTC (rev 396713) @@ -1,81 +0,0 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -# Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com> -# Contributor: Allan McRae <al...@archlinux.org> -# Contributor: Jan de Groot <j...@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=9.2 -pkgrel=1 -pkgdesc='The GNU Debugger' -arch=(x86_64) -url='https://www.gnu.org/software/gdb/' -license=(GPL3) -makedepends=(texinfo python guile2.0 ncurses expat xz mpfr source-highlight) -source=(https://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig}) -sha1sums=('356ee474a24bfb2f133894730916557dfea9da2e' - 'SKIP') -b2sums=('e83468f2d2fdcf4a7eb2943564750c7e9e9fa19b00bd832a9c149ad06b199cc7d6e7b8808d552e5f0e9e4f701a9262faf6b0b46ed4e0b4ecd3a0303d873d6d9a' - '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.0 \ - --with-system-gdbinit=/etc/gdb/gdbinit - make -} - -package_gdb-common() { - depends=(python guile2.0) - - cd gdb-$pkgver/build - - make DESTDIR="$pkgdir" install - # resolve conflicts with binutils - rm "$pkgdir"/usr/include/{ansidecl,bfd,bfdlink,dis-asm,plugin-api,symcat,ctf,ctf-api,bfd_stdint,diagnostics}.h - rm "$pkgdir"/usr/share/info/bfd.info - rm "$pkgdir"/usr/lib/{libbfd,libopcodes,libctf,libctf-nobfd}.a - - rm -r "$pkgdir"/usr/{bin,include,lib,share/info,share/man} -} - -package_gdb() { - depends=(ncurses expat xz mpfr source-highlight gdb-common=$pkgver) - backup=(etc/gdb/gdbinit) - - cd gdb-$pkgver/build - make DESTDIR="$pkgdir" install - - # resolve conflicts with binutils - rm "$pkgdir"/usr/include/{ansidecl,bfd,bfdlink,dis-asm,plugin-api,symcat,ctf,ctf-api,bfd_stdint,diagnostics}.h - rm "$pkgdir"/usr/share/info/bfd.info - rm "$pkgdir"/usr/lib/{libbfd,libopcodes,libctf,libctf-nobfd}.a - - # 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: Copied: gdb/repos/extra-x86_64/PKGBUILD (from rev 396712, gdb/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-09-27 13:31:37 UTC (rev 396713) @@ -0,0 +1,71 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com> +# Contributor: Allan McRae <al...@archlinux.org> +# Contributor: Jan de Groot <j...@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=9.2 +pkgrel=2 +pkgdesc='The GNU Debugger' +arch=(x86_64) +url='https://www.gnu.org/software/gdb/' +license=(GPL3) +makedepends=(glibc gcc-libs texinfo python guile2.0 ncurses expat xz mpfr source-highlight + readline) +source=(https://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.xz{,.sig}) +sha1sums=('356ee474a24bfb2f133894730916557dfea9da2e' + 'SKIP') +b2sums=('e83468f2d2fdcf4a7eb2943564750c7e9e9fa19b00bd832a9c149ad06b199cc7d6e7b8808d552e5f0e9e4f701a9262faf6b0b46ed4e0b4ecd3a0303d873d6d9a' + '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.0 \ + --with-system-gdbinit=/etc/gdb/gdbinit + make +} + +package_gdb-common() { + depends=(python guile2.0) + + 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 guile2.0 python) + backup=(etc/gdb/gdbinit) + + cd gdb-$pkgver/build + make -C gdb 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: