aboutsummaryrefslogtreecommitdiffstats
path: root/main/cgdb/APKBUILD
blob: 60ae397ce96533643516cab18c1b33387e378533 (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
# Contributor: Harry
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cgdb
pkgver=0.6.7
pkgrel=1
pkgdesc="The Curses Debugger"
arch="all"
license="GPL2"
url="http://cgdb.sourceforge.net/"
depends="ncurses-dev readline-dev gdb"
source="http://cgdb.me/files/cgdb-$pkgver.tar.gz"
subpackages="$pkgname-doc"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libdir=/usr/lib \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make install \
		pkgconfigdir="/usr/lib/pkgconfig" \
		DESTDIR="$pkgdir" || return 1
	mkdir -p "$pkgdir"/usr/share/doc
	mv "$pkgdir"/usr/share/cgdb "$pkgdir"/usr/share/doc/
}

md5sums="e2d9a973d2683faf8130a82703bf6a31  cgdb-0.6.7.tar.gz"
sha256sums="074ed31d1e827a04574add8c27d391447d75313e85ff938005d8ec939499fda9  cgdb-0.6.7.tar.gz"
sha512sums="0a9d1cc3fb00c3cdaeb060d20d3312dd738b617ff1b188db33a074e2790f9721ca58e924ecc9929b84832c3ca22a334d7a66294439341a9b6868eef1baafca3e  cgdb-0.6.7.tar.gz"