mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
pkgname=gcompris
|
|
_pkgname=$pkgname-qt
|
|
pkgver=0.81
|
|
epoch=1
|
|
pkgrel=1
|
|
pkgdesc="High quality educational software suite comprising of numerous activities for children aged 2 to 10."
|
|
arch=('x86_64')
|
|
url="http://gcompris.net/"
|
|
license=('GPL3')
|
|
depends=('qt5-multimedia' 'qt5-tools' 'qt5-declarative' 'qt5-svg' 'qt5-graphicaleffects' 'qt5-sensors'
|
|
'gnuchess' 'qml-box2d')
|
|
makedepends=('texinfo' 'intltool' 'git' 'extra-cmake-modules' 'kdoctools' 'python2' 'qt5-tools')
|
|
replaces=('kdeedu-pairs')
|
|
source=("http://gcompris.net/download/qt/src/gcompris-qt-${pkgver}.tar.xz")
|
|
md5sums=('f9ea155b4848729cc4b49711d47ebd3f')
|
|
|
|
build() {
|
|
cd $_pkgname-$pkgver
|
|
[[ -d build ]] && rm -r build
|
|
mkdir build && cd build
|
|
cmake \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
-DQML_BOX2D_MODULE=system \
|
|
-DQML_BOX2D_LIBRARY=/usr/lib/qt5/qml/Box2D.2.0 \
|
|
..
|
|
make
|
|
make BuildTranslations
|
|
}
|
|
|
|
package() {
|
|
cd $_pkgname-$pkgver/build
|
|
make DESTDIR=${pkgdir} install
|
|
install -Dm644 ../org.kde.gcompris.desktop ${pkgdir}/usr/share/applications/org.kde.gcompris.desktop
|
|
install -Dm644 ../GCompris64.png ${pkgdir}/usr/share/pixmaps/$_pkgname.png
|
|
ln -s /usr/bin/$_pkgname $pkgdir/usr/bin/$pkgname
|
|
}
|
|
|