void-packages/srcpkgs/phantomjs/template

51 lines
1.3 KiB
Bash
Raw Normal View History

2015-08-13 07:46:00 +00:00
# Template file for 'phantomjs'
pkgname=phantomjs
version=2.0.0
2016-04-01 07:58:58 +00:00
revision=4
2015-08-13 07:46:00 +00:00
hostmakedepends="unzip flex ruby gperf python perl pkg-config"
makedepends="
2015-11-29 08:30:48 +00:00
fontconfig-devel icu-devel libressl-devel libpng-devel
2015-08-13 07:46:00 +00:00
libjpeg-turbo-devel"
short_desc="Scriptable headless WebKit"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="BSD, MIT, LGPL-2.1"
homepage="http://phantomjs.org/"
distfiles="https://bitbucket.org/ariya/${pkgname}/downloads/${pkgname}-${version}-source.zip"
checksum=cc81249eaa059cc138414390cade9cb6509b9d6fa0df16f4f43de70b174b3bfe
2015-11-29 18:35:56 +00:00
nopie=yes
2015-08-13 07:46:00 +00:00
nocross=yes
do_configure() {
sed -e "s|-O2|${CXXFLAGS}|" \
-i src/qt/qtbase/mkspecs/common/{g++,gcc}-base.conf
sed -e "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" \
-i src/qt/qtbase/mkspecs/common/gcc-base.conf
# Disable severely outdated bundled version of google breakpad on musl:
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -e '/^#ifdef Q_OS_LINUX/,/^#endif/d' \
-i src/crashdump.cpp
sed -e '/^linux/,/^}/d' \
-i src/phantomjs.pro
;;
esac
}
do_build() {
export LD_LIBRARY_PATH="${wrksrc}/qtbase/lib:${wrksrc}/qttools/lib:${LD_LIBRARY_PATH}"
export LD="$CXX"
unset CPP AR AS RANLIB
./build.sh \
--confirm \
--jobs $XBPS_MAKEJOBS
}
do_install() {
vbin bin/phantomjs
vlicense LICENSE.BSD LICENSE
vlicense third-party.txt
}