aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f50b691b413ea417597ff071751df5117d3b3bc (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
42
43
44
45
46
# Maintainer: Jose M. Dana

pkgname=xxgdb
pkgver=1.12
pkgrel=3
pkgdesc='A simple but powerful graphical interface to gdb'
arch=('i686' 'x86_64')
license=('MIT')
depends=('gdb' 'glibc' 'libxaw' 'libxt' 'libx11' 'imake')
provides=('xxgdb')

source=(
    "https://fossies.org/linux/misc/old/xxgdb-${pkgver}.tar.gz"
    "xxgdb-pty.patch" # http://zhu-qy.blogspot.com.es/2012/11/slackware-14-i-still-got-xxgdb-all-ptys.html
)

md5sums=(
    "d7e447aeb9cab29a90d9d65f8f9a306c"
    "0dbf3325cf629a8b2195d98acfe9096c"
)

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

    patch -Np1 -i "${srcdir}"/xxgdb-pty.patch
}

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    xmkmf 
    make
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    make DESTDIR="${pkgdir}" install

    # Remove conflictive mess
    rm ${pkgdir}/usr/lib/X11/app-defaults
    mkdir ${pkgdir}/usr/lib/X11/app-defaults
    mv ${pkgdir}/etc/X11/app-defaults/XDbx ${pkgdir}/usr/lib/X11/app-defaults/
    rm -R ${pkgdir}/etc/
}