gcompris 0.61 (new, Qt-based version)

It replaces the gcompris package from [gtk], as it is no longer maintained
and has been replaced by the Qt version.

GCompris also replaces kde-pairs, which has been abandoned in favor of the
former.
This commit is contained in:
Adrián Chaves Fernández 2016-08-21 11:15:22 +02:00
parent 092bf864ac
commit 85e0476b66
2 changed files with 67 additions and 0 deletions

42
gcompris/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
pkgname=gcompris
_pkgname=$pkgname-qt
pkgver=0.61
epoch=2 # 15.10 → 0.61
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=('b0590750d47540f73551c56d7c66c8f4')
build() {
cd $srcdir/$_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 \
-DLCONVERT_EXECUTABLE=/usr/lib/qt5/bin/lconvert \
-DLRELEASE_EXECUTABLE=/usr/lib/qt5/bin/lrelease \
..
make
make BuildTranslations
}
package() {
cd $srcdir/$_pkgname-$pkgver/build
make DESTDIR=${pkgdir} install
install -Dm644 ${srcdir}/$_pkgname-$pkgver/org.kde.gcompris.desktop ${pkgdir}/usr/share/applications/org.kde.gcompris.desktop
install -Dm644 ${srcdir}/$_pkgname-$pkgver/GCompris64.png ${pkgdir}/usr/share/pixmaps/$_pkgname.png
ln -s /usr/bin/$_pkgname $pkgdir/usr/bin/$pkgname
}

25
qml-box2d/PKGBUILD Normal file
View File

@ -0,0 +1,25 @@
pkgname=qml-box2d
pkgver=0.1
_commit=fb35cf18fc74b1b68b353605c9799d08adaa81f9
pkgrel=3
pkgdesc="Expose the functionality of Box2D as QML components, in order to make it easy to write physics based games in QML."
url="https://github.com/qml-box2d/qml-box2d"
arch=('x86_64')
license=('LGPL')
depends=('qt5-declarative')
source=("https://github.com/qml-box2d/qml-box2d/archive/${_commit}.zip")
md5sums=('830c5ff6c677bb45ff529f2cea0289f9')
build() {
cd $pkgname-${_commit}
/usr/lib/qt5/bin/qmake
make
}
package() {
cd $pkgname-${_commit}
make INSTALL_ROOT=$pkgdir install
}