mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
42 lines
1.0 KiB
Bash
42 lines
1.0 KiB
Bash
# Include global configuration
|
|
source ../kdeapps.conf
|
|
|
|
pkgname=kross-interpreters
|
|
pkgver=${_kdever}
|
|
pkgrel=1
|
|
pkgdesc='Language interpreters to enable in-process scripting with Kross'
|
|
arch=('x86_64')
|
|
url="https://projects.kde.org/$pkgname"
|
|
license=(LGPL)
|
|
depends=(kross kdelibs4support)
|
|
makedepends=(extra-cmake-modules kdoctools python2)
|
|
optdepends=('python2: kross-python plugin')
|
|
options=('debug')
|
|
groups=('kde' 'kde-uninstall' 'kde-applications' 'kdebindings')
|
|
source=("$_mirror/${pkgname}-$_kdever.tar.xz")
|
|
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`)
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
|
|
# wrong version detected, force searching a Python2.x version
|
|
# source (http://www.cmake.org/Bug/view.php?id=13794)
|
|
# from
|
|
#find_package(PythonLibs 2 EXACT REQUIRED)
|
|
# to
|
|
#find_package(PythonLibs 2.7 REQUIRED)
|
|
|
|
sed -i 's/EXACT//g' ${srcdir}/${pkgname}-${pkgver}/CMakeLists.txt
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake_kf5 ../${pkgname}-${pkgver}
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR=${pkgdir} install
|
|
}
|