summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGero-bare2017-02-13 09:40:13 -0300
committerGero-bare2017-02-13 09:40:13 -0300
commit0c33b2dd10395506ce908c61a7dc4296d436a759 (patch)
tree0a1a07d0846673018f85d5493ac3216bcdb6ce9e
downloadaur-0c33b2dd10395506ce908c61a7dc4296d436a759.tar.gz
* Initial commit.
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD59
2 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c4900709b56
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = mips-harvard-os161-gdb
+ pkgdesc = The GNU Debugger modified for mips-harvard-os161 arquitecture. This is part of toolset for the course os161 from Harvard.
+ pkgver = 7.8+os161_2.1
+ pkgrel = 1
+ url = http://os161.eecs.harvard.edu/
+ arch = i686
+ arch = x86_64
+ groups = mips-harvard-os161-toolchain
+ license = GPL
+ license = LGPL
+ makedepends = flex
+ makedepends = bison
+ depends = mips-harvard-os161-binutils>=2.24
+ depends = gmp
+ depends = mpfr
+ depends = libmpc
+ options = staticlibs
+ options = !libtool
+ options = !emptydirs
+ options = !strip
+ options = zipman
+ options = docs
+ source = http://os161.eecs.harvard.edu/download/gdb-7.8+os161-2.1.tar.gz
+ md5sums = 26295f3f67090e534e3d488a3edce5ae
+
+pkgname = mips-harvard-os161-gdb
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d6fc77ddd6a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Geronimo Bareiro <gero dot bare at gmail dot com>
+
+_target="mips-harvard-os161"
+pkgname=${_target}-gdb
+_pkgver=7.8+os161-2.1
+pkgver=${_pkgver/os161-/os161_}
+pkgrel=1
+pkgdesc="The GNU Debugger modified for ${_target} arquitecture. This is part of toolset for the course os161 from Harvard."
+arch=(i686 x86_64)
+url="http://os161.eecs.harvard.edu/"
+license=('GPL' 'LGPL')
+groups=('mips-harvard-os161-toolchain')
+depends=('mips-harvard-os161-binutils>=2.24' 'gmp' 'mpfr' 'libmpc')
+makedepends=('flex' 'bison')
+options=(staticlibs !libtool !emptydirs !strip zipman docs)
+source=(http://os161.eecs.harvard.edu/download/gdb-${_pkgver}.tar.gz)
+md5sums=('26295f3f67090e534e3d488a3edce5ae')
+
+prepare() {
+ cd gdb-${_pkgver}
+
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+
+ mkdir ${srcdir}/gdb-build
+}
+
+build() {
+ cd gdb-build
+
+ export CFLAGS="-O2"
+ export CXXFLAGS="-O2"
+ unset CPPFLAGS
+
+ ../gdb-${_pkgver}/configure --prefix=/usr \
+ --program-prefix=${_target}- \
+ --with-local-prefix=/usr/lib/${_target} \
+ --target=${_target} --host=${CHOST} --build=${CHOST} \
+ --disable-nls --nfp \
+ --disable-shared --disable-threads \
+ --disable-werror
+
+ make
+}
+
+package() {
+ cd ${srcdir}/gdb-build
+
+ make DESTDIR=${pkgdir} install
+
+ # Delete the things we don't need
+ rm -f ${pkgdir}/usr/lib/libiberty.a
+ rm -rf ${pkgdir}/usr/share/info
+ rm -rf ${pkgdir}/usr/share/gdb
+ rm -rf ${pkgdir}/usr/include/gdb
+ rm -rf ${pkgdir}/usr/share/man
+
+}
+
+# vim: set ts=2 sw=2 ft=sh et: