41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'kjs'
|
|
pkgname=kjs
|
|
version=5.78.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DBUILD_TESTING=OFF"
|
|
hostmakedepends="kcoreaddons extra-cmake-modules perl pkg-config"
|
|
makedepends="qt5-devel qt5-script-devel qt5-declarative-devel kdoctools-devel"
|
|
short_desc="KDE Javascript engine"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="LGPL-2.0-or-later"
|
|
homepage="https://invent.kde.org/frameworks/kjs"
|
|
distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
|
|
checksum=9070e1d8b28ea111f1946de57fd80c74dd03e92e31fa3106c4fbb5d38de4566a
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools qt5-qmake kdoctools kjs"
|
|
fi
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
sed -i -e "s,COMMAND \${ICEMAKER_EXECUTABLE} ,COMMAND /usr/lib/libexec/${pkgname}/icemaker ," src/kjs/CMakeLists.txt
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
# internal tool needed for cross-building
|
|
vinstall build/bin/icemaker 0755 usr/lib/libexec/${pkgname}
|
|
}
|
|
|
|
kjs-devel_package() {
|
|
short_desc+=" - development"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/qt5/mkspecs
|
|
vmove usr/lib/cmake
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|