Commit d6a8d0cc authored by A. Klitzing's avatar A. Klitzing Committed by Natanael Copa

main/cgdb: upgrade to 0.7.0 and modernize abuild

parent 5b80e59b
# Contributor: Harry
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cgdb
pkgver=0.6.8
pkgrel=3
pkgver=0.7.0
pkgrel=0
pkgdesc="The Curses Debugger"
arch="all"
license="GPL2"
......@@ -11,14 +11,10 @@ depends="gdb"
makedepends="flex bison texinfo help2man ncurses-dev readline-dev"
source="http://cgdb.me/files/cgdb-$pkgver.tar.gz"
subpackages="$pkgname-doc"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
}
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -28,8 +24,13 @@ build() {
make || return 1
}
check() {
cd "$builddir"
make check || return 1
}
package() {
cd "$_builddir"
cd "$builddir"
make install \
pkgconfigdir="/usr/lib/pkgconfig" \
DESTDIR="$pkgdir" || return 1
......@@ -37,6 +38,4 @@ package() {
mv "$pkgdir"/usr/share/cgdb "$pkgdir"/usr/share/doc/
}
md5sums="7bd38c79bf4d794d239928fef401fca3 cgdb-0.6.8.tar.gz"
sha256sums="be203e29be295097439ab67efe3dc8261f742c55ff3647718d67d52891f4cf41 cgdb-0.6.8.tar.gz"
sha512sums="22580f0c2ad9c4f4efc429f94465fe54518c38f5efc95fa544ebbd93188d8e2ec740d7c3f22df1447df9af96eb4a317e4a4fbf5c771173f86ebdccbcbd776ab2 cgdb-0.6.8.tar.gz"
sha512sums="406830b5c0f8035df39571f01c20442b76c2509d069d6eb151c239e1cd30132ac6c4a404b8c96cdd8a06297d3c600c7b016a7d95cee2fda285b11fd21b391209 cgdb-0.7.0.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment