mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
48 lines
1.1 KiB
Bash
48 lines
1.1 KiB
Bash
|
# $Id: PKGBUILD 132237 2011-07-21 21:43:04Z ibiru $
|
||
|
# Maintainer: Ionut Biru <ibiru@archlinux.org>
|
||
|
|
||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||
|
# - patch to fix mozilla being retarded about ARM
|
||
|
|
||
|
plugrel=1
|
||
|
|
||
|
pkgname=js
|
||
|
pkgver=1.8.5
|
||
|
pkgrel=3
|
||
|
pkgdesc="JavaScript interpreter and libraries"
|
||
|
arch=(i686 x86_64)
|
||
|
url="https://developer.mozilla.org/En/SpiderMonkey/1.8.5"
|
||
|
license=('GPL2')
|
||
|
depends=('nspr' 'gcc-libs')
|
||
|
makedepends=('python2' 'zip')
|
||
|
replaces=('spidermonkey')
|
||
|
conflicts=('spidermonkey')
|
||
|
source=(http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
|
||
|
js185-destdir.patch
|
||
|
ihatemozilla.patch)
|
||
|
md5sums=('a4574365938222adca0a6bd33329cb32'
|
||
|
'364834a8391888642c53d78c3a949d94'
|
||
|
'9add35f52965e4643b9235307d0d6cc5')
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir/$pkgname-$pkgver/js/src"
|
||
|
|
||
|
patch -Np0 -i $srcdir/js185-destdir.patch
|
||
|
patch -Np3 -i $srcdir/ihatemozilla.patch
|
||
|
|
||
|
./configure --prefix=/usr --with-system-nspr \
|
||
|
--enable-threadsafe
|
||
|
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir/$pkgname-$pkgver/js/src"
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
|
||
|
install -m 0755 shell/js ${pkgdir}/usr/bin
|
||
|
|
||
|
#cleanup
|
||
|
rm -f "${pkgdir}/usr/lib/libmozjs185-1.0.a"
|
||
|
}
|