summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPkmX2016-08-11 14:35:08 +0800
committerPkmX2016-08-11 14:35:08 +0800
commit9948564d6bbf9e9c9204c7c00b17253e3f9a5dbd (patch)
tree9b41f6a6f075712e135b48b3b5643dce366f1259
downloadaur-9948564d6bbf9e9c9204c7c00b17253e3f9a5dbd.tar.gz
Init spidermonkey-git package
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD42
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..037b598c9bf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = spidermonkey-git
+ pkgdesc = Mozilla's JavaScript engine used in Firefox
+ pkgver = 51.0a1.45e888f
+ pkgrel = 1
+ url = https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
+ arch = i686
+ arch = x86_64
+ license = MPL
+ makedepends = git
+ makedepends = clang
+ makedepends = autoconf2.13
+ makedepends = python2
+ depends = zlib
+ provides = spidermonkey
+ conflicts = spidermonkey
+ source = gecko-dev::git+https://github.com/mozilla/gecko-dev.git
+ md5sums = SKIP
+
+pkgname = spidermonkey-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..38d6f3b8813
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: PkmX <pkmx.tw@gmail.com>
+
+pkgname=spidermonkey-git
+_gitname=gecko-dev
+pkgver=51.0a1.45e888f
+pkgrel=1
+pkgdesc="Mozilla's JavaScript engine used in Firefox"
+arch=('i686' 'x86_64')
+url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
+license=('MPL')
+depends=('zlib')
+makedepends=('git' 'clang' 'autoconf2.13' 'python2')
+provides=('spidermonkey')
+conflicts=('spidermonkey')
+source=("$_gitname::git+https://github.com/mozilla/gecko-dev.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_gitname"
+ printf '%s.%s' $(python python/mozbuild/mozbuild/milestone.py --topsrcdir .) $(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "$_gitname/js/src"
+ autoconf-2.13
+ mkdir -p build_OPT.OBJ
+ cd build_OPT.OBJ
+ # configure fails with hardened clang, reset CPPFLAGS
+ CC=clang CXX=clang++ CPPFLAGS= ../configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$_gitname/js/src/build_OPT.OBJ"
+ make DESTDIR="$pkgdir" install
+ for l in $(find "$pkgdir/usr/include/" -type l); do
+ cp --remove-destination $(readlink $l) $l
+ done
+ install -D ../../../LICENSE "$pkgdir/usr/share/licenses/spidermonkey-git/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: