void-packages/srcpkgs/kjs/template
2018-02-22 01:32:38 +01:00

40 lines
1.2 KiB
Bash

# Template file for 'kjs'
pkgname=kjs
version=5.43.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules perl pkg-config"
makedepends="qt5-devel qt5-script-devel qt5-declarative-devel kdoctools-devel"
short_desc="KDE Javascript engine"
maintainer="Denis Revin <denis.revin@gmail.com>"
license="LGPL-2"
homepage="https://projects.kde.org/projects/frameworks/kjs"
distfiles="http://download.kde.org/stable/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
checksum=a9746b88b6417975743c2cb5c7f1f0c73b2f011213341fc6343bab3e836fb8c9
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-qmake kdoctools kjs"
fi
pre_configure() {
if [ -n "$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
}
}