diff options
author | Grey Christoforo | 2017-01-26 23:38:55 +0000 |
---|---|---|
committer | Grey Christoforo | 2017-01-26 23:38:55 +0000 |
commit | 82e2ce3043e1cf8405d206f3513e746f23c2fa40 (patch) | |
tree | 25dc9506584673718e921f4fb57b76c088ca97c5 /PKGBUILD | |
download | aur-82e2ce3043e1cf8405d206f3513e746f23c2fa40.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8087d0f22177 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Grey Christoforo <first name [at] last name [dot] net> + +pkgname=chakaracore-git +pkgver=v1.4.0.r551.g0dd9cd340 +pkgrel=1 +pkgdesc="the core part of the Chakra Javascript engine that powers Microsoft Edge" +arch=('any') +url="https://github.com/Microsoft/ChakraCore" +license=('MIT') +depends=('cmake' + 'clang' + 'icu') +source=("git+https://github.com/Microsoft/ChakraCore") +md5sums=('SKIP') + +pkgver() { + cd ChakraCore + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + sed -i 's,#!/usr/bin/env python,#!/usr/bin/env python2,g' "${srcdir}/ChakraCore/bin/ch/jstoc.py" + +} + +build() { + cd ChakraCore + ./build.sh --static -j 8 +} + +package() { + mkdir -p "${pkgdir}/opt" + mv "${srcdir}/ChakraCore/BuildLinux/Release" "${pkgdir}/opt/${pkgname}" + mkdir -p "${pkgdir}/opt/${pkgname}/include" + + cp "$srcdir/ChakraCore/lib/Jsrt/"*.h "${pkgdir}/opt/${pkgname}/include/." + + cd "${pkgdir}/opt/${pkgname}" + mkdir tmp + cd tmp + for i in $(find .. -name \*.a); do + ar x $i + done + ar rcs ../libChakraCore.a *.o + cd .. + rm -rf tmp +} + |