diff options
author | Michael Alexander | 2016-11-02 13:47:32 +1100 |
---|---|---|
committer | Michael Alexander | 2016-11-02 13:50:31 +1100 |
commit | 095005dad9c5616183702fd7db96cbc5bcd0bd7d (patch) | |
tree | 64b48359c25b91557e1f0a39366d4bcac9da9945 | |
download | aur-095005dad9c5616183702fd7db96cbc5bcd0bd7d.tar.gz |
Initial working version.
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..63b4f7c02ab6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = hhvm-hack-git + pkgdesc = HHVM's Hack tools (hh_client, hh_server, hh_format et al.) + pkgver = 3.15.2 + pkgrel = 1 + url = http://hacklang.org/ + arch = x86_64 + license = PHP + makedepends = git + makedepends = ocaml + makedepends = ocamlbuild + makedepends = ocaml-compiler-libs + makedepends = ocaml-ctypes + makedepends = gcc + makedepends = cmake + conflicts = hhvm + source = https://github.com/facebook/hhvm/commit/7f556de.patch + source = hhvm::git+https://github.com/facebook/hhvm#tag=HHVM-3.15.2 + md5sums = 5cc6f0e19f1d8948136e06fe84ed5f2d + md5sums = SKIP + +pkgname = hhvm-hack-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f26015f51c77 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Michael Alexander <beefsack@gmail.com> +pkgname=hhvm-hack-git +pkgver=3.15.2 +pkgrel=1 +pkgdesc="HHVM's Hack tools (hh_client, hh_server, hh_format et al.)" +arch=('x86_64') +url="http://hacklang.org/" +license=('PHP') +makedepends=('git' 'ocaml' 'ocamlbuild' 'ocaml-compiler-libs' 'ocaml-ctypes' 'gcc' 'cmake') +conflicts=("hhvm") +source=( + "https://github.com/facebook/hhvm/commit/7f556de.patch" + "hhvm::git+https://github.com/facebook/hhvm#tag=HHVM-${pkgver}" +) +md5sums=( + '5cc6f0e19f1d8948136e06fe84ed5f2d' + 'SKIP' +) + +prepare() { + cd "$srcdir/hhvm" + git apply "$srcdir/7f556de.patch" +} + +build() { + cd "$srcdir/hhvm" + git submodule update --init --recursive + cd hphp/hack + cmake . + make +} + +package() { + cd "$srcdir/hhvm/hphp/hack/bin" + mkdir -p "$pkgdir/usr/bin" + cp h2tp hh_client hh_emitter hh_format hh_match hh_server hh_single_type_check "$pkgdir/usr/bin/" +} |