Created
October 7, 2013 16:07
-
-
Save jpf91/6870439 to your computer and use it in GitHub Desktop.
monodevelop-debugger-gdb-git PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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