mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:57:14 +08:00
131 lines
5.4 KiB
Bash
131 lines
5.4 KiB
Bash
#
|
|
# QT Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
pkgbase=qt5
|
|
pkgname=('qt5' 'qt5-private-headers')
|
|
pkgver=5.0.1.1
|
|
_pkgver=5.0.1.1
|
|
pkgrel=1
|
|
arch=('x86_64')
|
|
url='http://qt.nokia.com/'
|
|
license=('GPL3' 'LGPL')
|
|
makedepends=('libtiff' 'libpng' 'libmng' 'sqlite3' 'ca-certificates' 'glib2' 'dbus'
|
|
'fontconfig' 'libgl' 'libsm' 'libxrandr' 'libxv' 'libxi' 'alsa-lib' 'icu'
|
|
'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils' 'mesa' 'postgresql-libs'
|
|
'mariadb' 'unixodbc' 'cups' 'libxinerama' 'libxcursor' 'python2' 'gperf' 'ruby'
|
|
'xcb-util-image' 'xcb-util-keysyms' 'xcb-util-renderutil' 'xcb-util-wm' 'pulseaudio'
|
|
'gstreamer0.10' 'gstreamer0.10-base' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins'
|
|
'gstreamer0.10-bad-plugins' 'gstreamer0.10-ffmpeg' 'gstreamer0.10-ugly-plugins')
|
|
options=('!libtool')
|
|
#_pkgfqn="qt-everywhere-opensource-src-${_pkgver}"
|
|
_pkgfqn=qt5
|
|
source=("${pkgname}.tar.xz"
|
|
#"http://origin.releases.qt-project.org/qt5/${_pkgver}/single/qt-everywhere-opensource-src-${_pkgver}.tar.xz"
|
|
'assistant.desktop' 'designer.desktop' 'linguist.desktop' 'qtconfig.desktop'
|
|
'youtubeview.desktop' 'flickrview.desktop' 'browser.desktop' 'fancybrowser.desktop' 'qmlviewer.desktop'
|
|
'defaultbookmarks_new.diff')
|
|
md5sums=('96a54524c1fa7ecccc114dc6e848717a'
|
|
'fc211414130ab2764132e7370f8e5caa'
|
|
'85179f5e0437514f8639957e1d8baf62'
|
|
'f11852b97583610f3dbb669ebc3e21bc'
|
|
'6b771c8a81dd90b45e8a79afa0e5bbfd'
|
|
'85fc45501d232c8104cbff218d88199b'
|
|
'f24376558f74f1f97ab236db4ca5c616'
|
|
'3b7ea368a2700dc61bc22fc78e759b1c'
|
|
'188ece1d836c7ad5fd354c72d2f4c424'
|
|
'a43297d33bfd05f8d47ed161254c18f0'
|
|
'ee9108cd20761a193c0c69d158b091ac')
|
|
|
|
build() {
|
|
cd $srcdir/$_pkgfqn
|
|
patch -p1 -i "$srcdir/defaultbookmarks_new.diff"
|
|
|
|
unset QTDIR
|
|
export PATH="$PWD/qtbase/bin:$PWD/qtrepotools/bin:$PATH"
|
|
|
|
./configure -confirm-license -opensource \
|
|
-prefix /usr \
|
|
-bindir /usr/lib/qt5/bin \
|
|
-headerdir /usr/include/qt5 \
|
|
-archdatadir /usr/lib/qt5 \
|
|
-docdir /usr/share/doc/qt5 \
|
|
-plugindir /usr/lib/qt5/plugins \
|
|
-importdir /usr/lib/qt5/imports \
|
|
-qmldir /usr/lib/qt5/qml \
|
|
-datadir /usr/share/qt5 \
|
|
-testsdir /usr/share/qt5/tests \
|
|
-translationdir /usr/share/qt5/translations \
|
|
-sysconfdir /etc/xdg/qt5 \
|
|
-examplesdir /usr/share/qt5/examples \
|
|
-system-sqlite \
|
|
-openssl-linked \
|
|
-nomake demos \
|
|
-nomake tests \
|
|
-nomake examples \
|
|
-nomake docs \
|
|
-optimized-qmake \
|
|
-reduce-relocations \
|
|
-dbus-linked \
|
|
-no-openvg \
|
|
-no-separate-debug-info \
|
|
-no-gtkstyle \
|
|
-opengl \
|
|
-feature-menu \
|
|
-feature-textdate \
|
|
-feature-ftp \
|
|
-xcursor
|
|
make
|
|
#./configure -prefix $PWD/qtbase -opensource
|
|
#make module-qtwebkit
|
|
}
|
|
|
|
package_qt5() {
|
|
pkgdesc='A cross-platform application and UI framework'
|
|
depends=('libtiff' 'libpng' 'libmng' 'sqlite3' 'ca-certificates' 'glib2' 'dbus'
|
|
'fontconfig' 'libgl' 'libsm' 'libxrandr' 'libxv' 'libxi' 'alsa-lib' 'ruby'
|
|
'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils' 'libxinerama' 'libxcursor'
|
|
'pulseaudio' 'gstreamer0.10' 'gstreamer0.10-base' 'gstreamer0.10-base-plugins'
|
|
'gstreamer0.10-good-plugins' 'gstreamer0.10-bad-plugins' 'gstreamer0.10-ffmpeg'
|
|
'gstreamer0.10-ugly-plugins' 'xcb-util-image' 'xcb-util-keysyms'
|
|
'xcb-util-renderutil' 'xcb-util-wm')
|
|
optdepends=('postgresql-libs: PostgreSQL driver'
|
|
'libmysqlclient: MySQL driver'
|
|
'unixodbc: ODBC driver'
|
|
'libxinerama: Xinerama support'
|
|
'libxfixes: Xfixes support')
|
|
|
|
cd $srcdir/$_pkgfqn
|
|
make INSTALL_ROOT=$pkgdir install
|
|
|
|
install -d ${pkgdir}/usr/share/applications
|
|
install -m644 ${srcdir}/youtubeview.desktop ${pkgdir}/usr/share/applications/
|
|
install -m644 ${srcdir}/flickrview.desktop ${pkgdir}/usr/share/applications/
|
|
install -m644 ${srcdir}/qmlviewer.desktop ${pkgdir}/usr/share/applications/
|
|
|
|
mkdir -p ${pkgdir}/usr/bin
|
|
for i in $(ls ${pkgdir}/usr/lib/qt5/bin); do
|
|
ln -s /usr/lib/qt5/bin/${i} ${pkgdir}/usr/bin/${i}-qt5
|
|
done
|
|
}
|
|
|
|
package_qt5-private-headers() {
|
|
pkgdesc="Qt private headers for development"
|
|
depends=("qt5=${pkgver}")
|
|
|
|
install -d ${pkgdir}/usr/include/qt5/{QtCore,QtDeclarative,QtGui,QtScript}
|
|
install -d ${pkgdir}/usr/src/qt5/{corelib,declarative,gui,script}
|
|
|
|
cp -r ${srcdir}/$_pkgfqn/qtbase/include/QtCore/${pkgver}/QtCore/private/ ${pkgdir}/usr/include/qt5/QtCore/
|
|
cp -r ${srcdir}/$_pkgfqn/qtbase/include/QtGui/${pkgver}/QtGui/private/ ${pkgdir}/usr/include/qt5/QtGui/
|
|
cp -r ${srcdir}/$_pkgfqn/qtdeclarative/include/QtQml/${pkgver}/QtQml/private/ ${pkgdir}/usr/include/qt5/QtQml/
|
|
cp -r ${srcdir}/$_pkgfqn/qtscript/include/QtScript/${pkgver}/QtScript/private/ ${pkgdir}/usr/include/qt5/QtScript/
|
|
|
|
for i in corelib gui; do
|
|
cp -r ${srcdir}/$_pkgfqn/qtbase/src/${i} ${pkgdir}/usr/src/qt5/
|
|
done
|
|
cp -r ${srcdir}/$_pkgfqn/qtscript/src/script ${pkgdir}/usr/src/qt5/
|
|
cp -r ${srcdir}/$_pkgfqn/qtdeclarative/src/qml ${pkgdir}/usr/src/qt5/
|
|
}
|