summaryrefslogtreecommitdiff
path: root/community/cgdb
diff options
context:
space:
mode:
Diffstat (limited to 'community/cgdb')
-rw-r--r--community/cgdb/PKGBUILD25
-rw-r--r--community/cgdb/cgdb.install17
2 files changed, 42 insertions, 0 deletions
diff --git a/community/cgdb/PKGBUILD b/community/cgdb/PKGBUILD
new file mode 100644
index 000000000..0fa80294f
--- /dev/null
+++ b/community/cgdb/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Marek Kubica <marek@xivilization.net>
+# Contributor: Javier ‘Phrodo_00’ Aravena <Phrodo.00@gmail.com>
+pkgname=cgdb
+pkgver=0.6.7
+pkgrel=2
+pkgdesc="Curses-based interface to the GNU Debugger"
+arch=('i686' 'x86_64')
+url="http://cgdb.sourceforge.net/"
+license=('GPL')
+depends=('readline>=5.1' 'ncurses' 'gdb')
+source=("http://cgdb.me/files/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('0a9d1cc3fb00c3cdaeb060d20d3312dd738b617ff1b188db33a074e2790f9721ca58e924ecc9929b84832c3ca22a334d7a66294439341a9b6868eef1baafca3e')
+install=cgdb.install
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}/" install
+}
diff --git a/community/cgdb/cgdb.install b/community/cgdb/cgdb.install
new file mode 100644
index 000000000..8ecafe752
--- /dev/null
+++ b/community/cgdb/cgdb.install
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+file=cgdb.info.gz
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+}
+