diff options
Diffstat (limited to 'main/cgdb/APKBUILD')
-rw-r--r-- | main/cgdb/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/cgdb/APKBUILD b/main/cgdb/APKBUILD new file mode 100644 index 0000000000..d3981d964b --- /dev/null +++ b/main/cgdb/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Harry +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> + +pkgname=cgdb +pkgver=0.6.6 +pkgrel=0 +pkgdesc="The Curses Debugger" +arch="all" +license=GPL +url="http://cgdb.sourceforge.net/" +depends="ncurses-dev readline-dev gdb" +source="http://downloads.sourceforge.net/project/cgdb/cgdb/cgdb-$pkgver/cgdb-$pkgver.tar.gz" +subpackages="$pkgname-doc" + +_builddir="$srcdir/$pkgname-$pkgver" +prepare() { + cd "$_builddir" +} + +build() { + cd "$_builddir" + ./configure --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="394b542b495755ab8392b7e88dace744 cgdb-0.6.6.tar.gz" + + |