Created
August 27, 2015 04:02
-
-
Save jonongjs/c17d1d27870954bb5953 to your computer and use it in GitHub Desktop.
Haxe 3.1.3 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
# Contributor: Dmitry V. Luciv <dluciv@dluciv.name> | |
# Maintainer: Dmitry V. Luciv <dluciv@dluciv.name> | |
pkgname=haxe3-bin | |
pkgver=3.1.3 | |
pkgrel=2 | |
pkgdesc="HaXe (pronounced as hex) is an open source programming language, multiple backends, mostly web-targeted." | |
url="http://haxe.org/" | |
license=('GPL') | |
arch=("i686" "x86_64") | |
options=(!strip) | |
[[ "$CARCH" = "i686" ]] && depends=("neko>=2.0.0" "glibc" "zlib") && _platform="linux32" | |
[[ "$CARCH" = "x86_64" ]] && depends=("neko>=2.0.0" "lib32-glibc" "lib32-zlib") && _platform="linux64" | |
makedepends=() | |
conflicts=(haxe-bin haxe) | |
replaces=("haxe") | |
# Thanks to haxe authors' delusions and taste | |
commaver="${pkgver//./,}" | |
source=( | |
"http://haxe.org/website-content/downloads/$commaver/downloads/haxe-$pkgver-${_platform}.tar.gz" | |
) | |
[[ "$CARCH" = "i686" ]] && md5sums=("025f4f33c8770ec804acfff45b71506d") | |
[[ "$CARCH" = "x86_64" ]] && md5sums=("564e7c0c6cecde3b692e6207c44fed9b") | |
build() { | |
cd $srcdir | |
tar xvzf haxe-${pkgver}-${_platform}.tar.gz | |
} | |
package() { | |
cd $pkgdir | |
mkdir -p usr/bin | |
cp $srcdir/haxe-${pkgver}/haxe usr/bin/haxe | |
mkdir -p usr/lib/haxe | |
cp -r $srcdir/haxe-${pkgver}/std usr/lib/haxe | |
cp $srcdir/haxe-${pkgver}/std/tools/haxelib/haxelib usr/bin/haxelib | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment