Skip to content

Instantly share code, notes, and snippets.

@dundee
Last active November 9, 2017 15:40
Show Gist options
  • Save dundee/8c38c2b24d5c0d5cf4bffc2471360524 to your computer and use it in GitHub Desktop.
Save dundee/8c38c2b24d5c0d5cf4bffc2471360524 to your computer and use it in GitHub Desktop.
PKBUILD ironpython-git
# Maintainer: Michael Schubert <mschu.dev at gmail>
pkgname=ironpython-git
pkgver=r2315.ac72964d7
pkgrel=1
pkgdesc="Python implementation for the .NET framework"
arch=("any")
url="http://ironpython.net"
license=("Apache")
depends=('mono' 'msbuild-bin')
makedepends=('git')
options=('!strip' 'emptydirs' 'libtool')
source=($pkgname::git+https://github.com/IronLanguages/ironpython2.git)
md5sums=('SKIP')
provides=('ironpython')
replaces=('ironpython')
pkgver() {
cd "$srcdir/$pkgname"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$pkgname"
git checkout ac72964d7
git submodule update --init
}
build() {
cd "$srcdir/$pkgname"
git checkout ac72964d7
msbuild.exe Build.proj /t:Build /p:Mono=true /p:BuildFlavour=Release \
/p:Platform="Any CPU" /verbosity:minimal /nologo
}
package() {
mkdir -p "$pkgdir/opt/ipy" "$pkgdir/usr/bin"
cp -r "$srcdir"/$pkgname/bin/Release/* "$pkgdir/opt/ipy"
for bin in ipy ipy64 ipyw ipyw64; do
echo -e "#!/bin/sh\nmono /opt/ipy/$bin.exe \$*" > "$pkgdir/usr/bin/$bin"
chmod +x "$pkgdir/usr/bin/$bin"
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment