PKGBUILDs/community/js185/PKGBUILD

55 lines
1.6 KiB
Bash
Raw Normal View History

2013-04-23 00:04:46 +00:00
# $Id: PKGBUILD 183425 2013-04-21 22:11:08Z heftig $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix mozilla stupidity
2014-02-05 22:25:55 +00:00
# - patch to fix mozilla stupidity
2015-07-19 05:07:00 +00:00
# - patch for AArch64
2013-04-23 00:04:46 +00:00
pkgname=js185
pkgver=1.0.0
2015-12-10 05:08:54 +00:00
pkgrel=3
2013-04-23 00:04:46 +00:00
pkgdesc="JavaScript interpreter and libraries (legacy)"
arch=(i686 x86_64)
2015-12-10 05:08:54 +00:00
url="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/1.8.5"
2013-04-23 00:04:46 +00:00
license=(MPL)
depends=(nspr gcc-libs)
makedepends=(python2 zip)
options=(!staticlibs)
source=(http://ftp.mozilla.org/pub/mozilla.org/js/$pkgname-$pkgver.tar.gz
2015-07-19 05:07:00 +00:00
ihatemozilla.patch no-neon.patch
Bug-638056-Avoid-The-cacheFlush-support-is-missing-o.patch)
2013-04-23 00:04:46 +00:00
md5sums=('a4574365938222adca0a6bd33329cb32'
2014-02-05 22:25:55 +00:00
'9add35f52965e4643b9235307d0d6cc5'
2015-07-19 05:07:00 +00:00
'5d4817fadff71765c9b5d1f7b90f904f'
'31d3273a985b88938e229ded36271286')
2013-04-23 00:04:46 +00:00
build() {
cd js-1.8.5/js/src
# _FORTIFY_SOURCE causes configure error
unset CPPFLAGS
patch -p3 -i "$srcdir/ihatemozilla.patch"
2014-02-05 22:25:55 +00:00
patch -p3 -i "$srcdir/no-neon.patch"
2015-07-19 05:07:00 +00:00
[[ $CARCH == "aarch64" ]] && patch -p3 -i "$srcdir/Bug-638056-Avoid-The-cacheFlush-support-is-missing-o.patch"
2013-04-23 00:04:46 +00:00
./configure --prefix=/usr --with-system-nspr \
--enable-threadsafe
make
}
package() {
cd js-1.8.5/js/src
make DESTDIR="$pkgdir" install
install -Dm755 shell/js "$pkgdir/usr/bin/js"
find "$pkgdir"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} +
# Bad symlinks (absolute, including DESTDIR!)
cd "$pkgdir/usr/lib"
ln -sf libmozjs185.so.1.0.0 libmozjs185.so.1.0
ln -sf libmozjs185.so.1.0 libmozjs185.so
}
# vim:set ts=2 sw=2 et: