blob: ed3e518f3b0659d27abfb488e6ddfda4b40f9d19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: danirod <dani@danirod.es>
# Contributor: c0repwn3r <core@coredoes.dev>
pkgname=i386-elf-gdb
pkgver=14.2
pkgrel=1
epoch=
pkgdesc="GNU debugger crosscompiled for i386 development"
arch=(x86_64)
url="https://www.gnu.org/software/gdb"
license=('GPL-3.0-or-later')
groups=(i386-elf-toolchain)
makedepends=(gmp mpfr)
depends=(xz libmpc i386-elf-gcc gdb) # GDB is included to prevent conflicts with it - otherwise this package won't function
source=(
"http://ftpmirror.gnu.org/gdb/gdb-$pkgver.tar.xz"
)
sha256sums=('2d4dd8061d8ded12b6c63f55e45344881e8226105f4d2a9b234040efa5ce7772')
OPTIONS=(!strip)
build() {
mkdir -p "i386-gdb-$pkgver-build"
cd "i386-gdb-$pkgver-build"
# Configure, we are building in seperate directory to cleanly seperate the binaries from the source
../gdb-$pkgver/configure --target=i386-elf --prefix=/usr --program-prefix=i386-elf-
# Build
make
}
package() {
cd "i386-gdb-$pkgver-build"
make install DESTDIR=$pkgdir
# Remove conflicting files
rm -rf $pkgdir/usr/share/locale/
rm -rf $pkgdir/usr/share/gdb
rm -rf $pkgdir/usr/include/gdb
rm -rf $pkgdir/usr/share/info/dir
}
|