Skip to content

Instantly share code, notes, and snippets.

@jpf91
Created October 7, 2013 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpf91/6870429 to your computer and use it in GitHub Desktop.
Save jpf91/6870429 to your computer and use it in GitHub Desktop.
monodevelop-debugger-gdb-git PKGBUILD
pkgname=monodevelop-debugger-gdb-git
_pkgname=monodevelop
pkgver=20130929
pkgrel=1
pkgdesc="Mono Debugger support"
arch=('i686' 'x86_64') # also "any" pkg?
url="http://monodevelop.com"
license=('GPL')
depends=('monodevelop-git' 'gdb')
makedepends=('mono' 'git' 'pkg-config')
provides=('monodevelop-debugger-gdb')
conflicts=('monodevelop-debugger-gdb')
source=()
sha256sums=()
options=(!makeflags)
_gitroot="git://github.com/mono/monodevelop.git"
_gitname="monodevelop"
build() {
cd "$srcdir"
if [ -d "$_gitname" ]; then
cd "$_gitname"
git pull origin || return 1
cd ..
else
git clone "$_gitroot" || return 1
fi
rm -rf "$_gitname-build"
git clone "$_gitname" "$_gitname-build" || return 1
cd "$_gitname-build"
git submodule update --init --recursive || return 1
export MONO_SHARED_DIR="${srcdir}/.wabi"
mkdir -p "${MONO_SHARED_DIR}"
cd "extras/MonoDevelop.Debugger.Gdb"
./configure --prefix=/usr
make || return 1
}
package() {
cd "${srcdir}/$_gitname-build/extras/MonoDevelop.Debugger.Gdb"
make DESTDIR="${pkgdir}" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment