blob: 8aedd2184e263610f093c6ffc81c0f532fc562e7 (
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
|
pkgname=psp-gdb
pkgver=7.5.1
pkgrel=1
pkgdesc="The GNU Debugger (psp)"
arch=(any)
url="http://www.gnu.org/software/gdb/"
license=('GPL3')
groups=('psp')
depends=('psp-sdk')
options=('!buildflags' '!strip' 'staticlibs')
source=("http://ftp.gnu.org/pub/gnu/gdb/gdb-$pkgver.tar.bz2"
"gdb-$pkgver-fixes.patch"
"gdb-$pkgver-PSP.patch")
md5sums=('SKIP'
'SKIP' 'SKIP')
prepare ()
{
cd "$srcdir/gdb-$pkgver"
patch -p1 -i "$srcdir"/gdb-$pkgver-PSP.patch
patch -p1 -i "$srcdir"/gdb-$pkgver-fixes.patch
}
build()
{
cd "$srcdir/gdb-$pkgver"
mkdir -p build-psp && pushd build-psp
../configure --prefix=/usr --target=psp \
--disable-werror --disable-nls \
--with-system-zlib --with-system-readline
make
}
package()
{
cd "$srcdir/gdb-$pkgver/build-psp"
make install DESTDIR="$pkgdir"
rm -r "$pkgdir"/usr/share
rm -r "$pkgdir"/usr/lib
}
|