From e363875b14479aa4c6ff12f3e4e7ed920df4e45f Mon Sep 17 00:00:00 2001 From: root Date: Sun, 3 Feb 2013 01:12:14 -0800 Subject: Sun Feb 3 01:12:00 PST 2013 --- community/meteorjs/PKGBUILD | 50 +++++++++++++++++++++++++++++++++++++++++++++ community/meteorjs/meteor | 13 ++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 community/meteorjs/PKGBUILD create mode 100644 community/meteorjs/meteor (limited to 'community/meteorjs') diff --git a/community/meteorjs/PKGBUILD b/community/meteorjs/PKGBUILD new file mode 100644 index 000000000..b514b39f3 --- /dev/null +++ b/community/meteorjs/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 83547 2013-02-02 18:38:31Z mtorromeo $ +# Maintainer: Massimiliano Torromeo +# Contributor: Parth Buch +# Contributor: Tom Vincent + +pkgname=meteorjs +pkgver=0.5.4 +pkgrel=1 +pkgdesc="Open-source platform for building top-quality web apps in a fraction of the time." +arch=('i686' 'x86_64') +url="https://github.com/meteor/meteor" +license=('MIT') +depends=('nodejs' 'mongodb') +options=('!strip') + +sha256sums=('64dbdfd1788e3859f54bbe36e99ca60574e625c68d41b9bfc9384b253b345798' + 'a3ac659c52b652676da0530f2148025e0f8bfa84bccf63431c20eb72d3bc5cb7') + +if [ "$CARCH" == x86_64 ]; then + _arch="amd64" +else + _arch="i386" + sha256sums[0]='7a3c1eaa8588876ed8bec6bab20b0be99f7e36fce839b3d70b776018ca606f89' +fi + +source=("http://d3sqy0vbqsdhku.cloudfront.net/meteor_$pkgver-1_$_arch.deb" meteor) + +package() { + tar xf data.tar.gz -C "$pkgdir" ./usr/lib/meteor + + install -Dm644 "$pkgdir/usr/lib/meteor/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" + install -Dm755 "$srcdir/meteor" "$pkgdir/usr/bin/meteor" + + cd "$pkgdir/usr/lib/meteor" + rm -rf LICENSE.txt lib/node lib/dtrace lib/node_modules/npm share include \ + lib/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson.node + + # mongodb links + rm -rf mongodb + install -dm755 mongodb/bin + ln -s /usr/bin/mongod mongodb/bin/mongod + ln -s /usr/bin/mongo mongodb/bin/mongo + + # node links + rm -rf bin + install -dm755 bin + ln -s /usr/bin/node bin/node + ln -s /usr/bin/node-waf bin/node-waf + ln -s /usr/bin/npm bin/npm +} diff --git a/community/meteorjs/meteor b/community/meteorjs/meteor new file mode 100644 index 000000000..252f4afe3 --- /dev/null +++ b/community/meteorjs/meteor @@ -0,0 +1,13 @@ +#!/bin/sh +if [ "$(ulimit -n)" != "unlimited" ] ; then + ulimit -n 16384 > /dev/null 2>&1 || \ + ulimit -n 8192 > /dev/null 2>&1 || \ + ulimit -n 4096 > /dev/null 2>&1 || \ + ulimit -n 2048 > /dev/null 2>&1 || \ + ulimit -n 1024 > /dev/null 2>&1 || \ + ulimit -n 512 > /dev/null 2>&1 +fi + +METEORDIR=/usr/lib/meteor +export NODE_PATH=$METEORDIR/lib/node_modules +exec /usr/bin/node $METEORDIR/app/meteor/meteor.js "$@" -- cgit v1.2.3-54-g00ecf