Last active
November 9, 2017 15:40
-
-
Save dundee/8c38c2b24d5c0d5cf4bffc2471360524 to your computer and use it in GitHub Desktop.
PKBUILD ironpython-git
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
# 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