Skip to content

Instantly share code, notes, and snippets.

@dmarcuse
Last active March 21, 2018 20:42
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 dmarcuse/d99afcf01de36628385f386961d383d0 to your computer and use it in GitHub Desktop.
Save dmarcuse/d99afcf01de36628385f386961d383d0 to your computer and use it in GitHub Desktop.
haxe preview pkgbuild
pkgname='haxe-preview'
pkgver='4.0.0_preview.3'
pkgrel=1
arch=('x86_64')
source=('https://github.com/HaxeFoundation/haxe/releases/download/4.0.0-preview.3/haxe-4.0.0-preview.3-linux64.tar.gz')
md5sums=('fb7a928234eeeef3122b368d6fcadaf2')
depends=('neko')
provides=('haxe')
conflicts=('haxe')
package() {
EXTRACTED="$srcdir/haxe_20180223115411_3018ab1"
# binaries
install -d "$pkgdir/usr/bin"
install -m 755 "$EXTRACTED/haxe" "$pkgdir/usr/bin/haxe"
install -m 755 "$EXTRACTED/haxelib" "$pkgdir/usr/bin/haxelib"
# standard lib
install -d "$pkgdir/usr/share/haxe/"
cp -a "$EXTRACTED/std" "$pkgdir/usr/share/haxe/"
# profile
install -d "$pkgdir/etc/profile.d/"
echo "export HAXE_STD_PATH=/usr/share/haxe/std" > "$pkgdir/etc/profile.d/hax.sh"
# license
install -d "$pkgdir/usr/share/licenses/haxe/"
install "$EXTRACTED/LICENSE.txt" "$pkgdir/usr/share/licenses/haxe/LICENSE.txt"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment