summaryrefslogtreecommitdiffstats
path: root/main/gdb/APKBUILD
blob: 67bb5d19ded311d52cf5f9ebd795421a9e6a55a9 (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
39
40
41
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gdb
pkgver=6.8
pkgrel=4
pkgdesc="The GNU Debugger"
url="http://sources.redhat.com/gdb/"
license="GPL3"
depends=
makedepends="ncurses-dev expat-dev"
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.bz2
	50_all_gdb-pie-1.patch
	50_all_gdb-pie-2.patch
	"
# patches were found here:
# http://distfiles.gentoo.org/distfiles/$pkgname-$pkgver-patches-1.3.tar.lzma

build () { 
	cd "$srcdir/$pkgname-$pkgver"
	for i in ../*.patch; do
		msg "Applying $i"
		patch -p1 < $i || return 1
	done

	./configure --prefix=/usr \
		--disable-nls \
		--without-system-readline \
		--disable-werror \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/share/info/dir
	# those are provided by binutils	
	rm -rf "$pkgdir"/usr/include
	rm -rf "$pkgdir"/usr/lib
}

md5sums="c9da266b884fb8fa54df786dfaadbc7a  gdb-6.8.tar.bz2
7d5bcb23ffbadb9ce6ac24f37003f619  50_all_gdb-pie-1.patch
33992db76732d26c6d1a3703b52e2c94  50_all_gdb-pie-2.patch"