diff options
-rw-r--r-- | user/gcompris-qt/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/gcompris-qt/APKBUILD b/user/gcompris-qt/APKBUILD new file mode 100644 index 000000000..501b791e2 --- /dev/null +++ b/user/gcompris-qt/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=gcompris-qt +pkgver=0.90 +pkgrel=0 +pkgdesc="Educational software suite in many languages" +url="http://gcompris.net/" +arch="all" +options="!check" # No test suite. +license="GPL-3.0-only" +depends="gst-plugins-base qml-box2d" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev + qt5-qtmultimedia-dev qt5-qtsvg-dev qt5-qtxmlpatterns-dev gstreamer-dev + qt5-qttools-dev qt5-qtsensors-dev kdoctools-dev" +install="" +langdir="/usr/share/gcompris-qt/translations" +subpackages="$pkgname-doc $pkgname-lang" +source="http://gcompris.net/download/qt/src/gcompris-qt-$pkgver.tar.xz" + +build() { + cd "$builddir" + mkdir build + cd build + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} \ + .. + make +} + +package() { + cd "$builddir"/build + make DESTDIR="$pkgdir" install +} + +sha512sums="3eda9c608440f4a3888a156af0ee97c39714da0e83d8fd95cbbfd374caa07d19c37f97a4eb7e3240665629de8d96eec5acf9aeb1564f56d06208696583eadd74 gcompris-qt-0.90.tar.xz" |