archrelease: copy trunk to community-any
[ArchLinux/community.git] / or1k-elf-gdb / repos / community-x86_64 / PKGBUILD
blobc0889e8b83171f23318de64cffd0ca925b02a94a
1 # Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
2 # Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
3 # Contributor: Martin Schmölzer <mschmoelzer@gmail.com>
5 _target=or1k-elf
6 pkgname=$_target-gdb
7 pkgver=12.1
8 pkgrel=4
9 pkgdesc='The GNU Debugger for the OpenRISC 100 (bare-metal) target'
10 arch=(x86_64)
11 url='https://www.gnu.org/software/gdb/'
12 license=(GPL3)
13 depends=(xz ncurses expat python guile gdb-common mpfr libelf source-highlight)
14 makedepends=(boost)
15 options=(!emptydirs)
16 source=(https://ftp.gnu.org/gnu/gdb/gdb-$pkgver.tar.xz{,.sig}
17         readline8.patch)
18 sha512sums=('425568d2e84672177d0fb87b1ad7daafdde097648d605e30cf0656970f66adc6a82ca2d83375ea4be583e9683a340e5bfdf5819668ddf66728200141ae50ff2d'
19             'SKIP'
20             '0c0d7fff104c73fe1da69b8502cef904243026bf86250eb4b81c5646e84a4a2a5bf97a38e705cc96450b2c52e67f3248bab35f38dbe4b5afd975e1493ef161bf')
21 validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker <brobecker@adacore.com>
23 build() {
24   cd gdb-$pkgver
25   patch -Np1 -i ../readline8.patch
27   mkdir -p build && cd build
28   ../configure \
29     --target=$_target \
30     --prefix=/usr \
31     --enable-languages=c,c++ \
32     --enable-multilib \
33     --enable-interwork \
34     --with-system-readline \
35     --disable-nls \
36     --enable-source-highlight \
37     --with-python=/usr/bin/python \
38     --with-system-gdbinit=/etc/gdb/gdbinit
40   make
43 package() {
44   cd gdb-$pkgver/build
46   make -C gdb DESTDIR="$pkgdir" install
48   # Following files conflict with 'gdb'/'gdb-common' packages
49   rm -r "$pkgdir"/usr/include/gdb/
50   rm -r "$pkgdir"/usr/share/gdb/
51   rm -r "$pkgdir"/usr/share/info/
52   rm -r "$pkgdir"/usr/share/man/man5/