summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLes De Ridder2020-07-12 18:49:07 +0200
committerLes De Ridder2020-07-12 19:07:24 +0200
commit060514ecaa95eb5f183aebeece01583c96f735ec (patch)
tree5ab32490dfc5113467403485edce7db4eed171ff
downloadaur-060514ecaa95eb5f183aebeece01583c96f735ec.tar.gz
Initial commit
-rw-r--r--.SRCINFO28
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD51
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..597bd6854527
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = gdb-msvc-git
+ pkgdesc = The GNU Debugger (compiled to debug target mingw-w64, with MSVC patches)
+ pkgver = 9.2.r16.gb65dd57
+ pkgrel = 1
+ url = https://github.com/lesderid/gdb-msvc
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = gcc
+ makedepends = texinfo
+ makedepends = radare2-git
+ makedepends = llvm
+ depends = ncurses
+ depends = expat
+ depends = xz
+ depends = readline
+ depends = source-highlight
+ depends = radare2-git
+ depends = llvm
+ provides = cross-mingw-w64-gdb
+ conflicts = cross-mingw-w64-gdb
+ options = staticlibs
+ options = !buildflags
+ source = git+https://github.com/lesderid/gdb-msvc
+ sha256sums = SKIP
+
+pkgname = gdb-msvc-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..ac84a7d959ac
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/pkg
+/src
+/*.tar*
+/gdb-msvc
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9ddd9d6d6333
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Les De Ridder <aur@lesderid.net>
+
+pkgname=gdb-msvc-git
+pkgver=9.2.r16.gb65dd57
+pkgrel=1
+pkgdesc="The GNU Debugger (compiled to debug target mingw-w64, with MSVC patches)"
+arch=('i686' 'x86_64')
+url="https://github.com/lesderid/gdb-msvc"
+license=('GPL3')
+depends=('ncurses' 'expat' 'xz' 'readline' 'source-highlight' 'radare2-git' 'llvm')
+makedepends=('gcc' 'texinfo' 'radare2-git' 'llvm')
+conflicts=('cross-mingw-w64-gdb')
+provides=('cross-mingw-w64-gdb')
+options=('staticlibs' '!buildflags')
+source=("git+https://github.com/lesderid/gdb-msvc")
+sha256sums=('SKIP')
+
+_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
+
+pkgver() {
+ cd "$srcdir/gdb-msvc"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/gdb-msvc"
+ for _arch in ${_architectures}; do
+ unset LDFLAGS
+ mkdir -p build-${_arch} && pushd build-${_arch}
+ ../configure --prefix=/usr \
+ --target=${_arch} \
+ --enable-lto \
+ --disable-nls \
+ --with-system-readline \
+ --with-expat
+ make
+ popd
+ done
+}
+
+package() {
+ for _arch in ${_architectures}; do
+ cd "$srcdir"/gdb-msvc/build-${_arch}
+ make install DESTDIR="$pkgdir"
+ rm -rf "$pkgdir"/usr/share/{info,locale,gdb}
+ rm -f "$pkgdir"/usr/share/man/man1/*-w64-mingw32-gdbserver.1*
+ rm -rf "$pkgdir"/usr/share/man/man5
+ rm -rf "$pkgdir"/usr/lib
+ rm -rf "$pkgdir"/usr/include
+ done
+}