mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-27 00:10:29 +00:00
extra/qt5-base to 5.8.0-10
This commit is contained in:
parent
56b9603f34
commit
30e6d1d540
1 changed files with 24 additions and 8 deletions
|
@ -7,17 +7,18 @@
|
|||
# - explicitly disable x86 optimizations
|
||||
# - use OpenGLES 2.0
|
||||
|
||||
pkgname=qt5-base
|
||||
pkgbase=qt5-base
|
||||
pkgname=(qt5-base qt5-xcb-private-headers)
|
||||
_qtver=5.8.0
|
||||
pkgver=${_qtver/-/}
|
||||
pkgrel=7
|
||||
pkgrel=10
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://qt-project.org/'
|
||||
license=('GPL3' 'LGPL3' 'FDL' 'custom')
|
||||
pkgdesc='A cross-platform application and UI framework'
|
||||
depends=('libjpeg-turbo' 'xcb-util-keysyms' 'xcb-util-renderutil' 'libgl' 'fontconfig'
|
||||
'xcb-util-wm' 'libxrender' 'libxi' 'sqlite' 'xcb-util-image' 'icu'
|
||||
'tslib' 'libinput' 'libsm' 'libxkbcommon-x11' 'libproxy' 'libcups') # 'openssl-1.0'
|
||||
'tslib' 'libinput' 'libsm' 'libxkbcommon-x11' 'libproxy' 'libcups' 'openssl-1.0')
|
||||
makedepends=('libfbclient' 'libmariadbclient' 'sqlite' 'unixodbc' 'postgresql-libs' 'alsa-lib' 'gst-plugins-base-libs'
|
||||
'gtk3' 'libpulse' 'cups' 'freetds')
|
||||
optdepends=('qt5-svg: to use SVG icon themes'
|
||||
|
@ -29,7 +30,7 @@ optdepends=('qt5-svg: to use SVG icon themes'
|
|||
'gtk3: GTK platform plugin')
|
||||
conflicts=('qtchooser')
|
||||
groups=('qt' 'qt5')
|
||||
_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
|
||||
_pkgfqn="${pkgbase/5-/}-opensource-src-${_qtver}"
|
||||
source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz"
|
||||
qt5-base-journald.patch::"https://github.com/qt/qtbase/commit/0c8f3229.patch"
|
||||
plasma-crash-1.patch::https://github.com/qt/qtbase/commit/3bd0fd8f.patch
|
||||
|
@ -67,8 +68,8 @@ prepare() {
|
|||
build() {
|
||||
cd ${_pkgfqn}
|
||||
|
||||
# echo "QMAKE_CXXFLAGS += -I/usr/include/openssl-1.0" >> mkspecs/linux-g++/qmake.conf
|
||||
# export OPENSSL_LIBS='-L/usr/lib/openssl-1.0 -lssl -lcrypto'
|
||||
echo "INCLUDEPATH += /usr/include/openssl-1.0" >> src/network/network.pro
|
||||
export OPENSSL_LIBS='-L/usr/lib/openssl-1.0 -lssl -lcrypto'
|
||||
|
||||
PYTHON=/usr/bin/python2 ./configure -confirm-license -opensource -v \
|
||||
-prefix /usr \
|
||||
|
@ -101,12 +102,14 @@ build() {
|
|||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
package_qt5-base() {
|
||||
pkgdesc='A cross-platform application and UI framework'
|
||||
|
||||
cd ${_pkgfqn}
|
||||
make INSTALL_ROOT="${pkgdir}" install
|
||||
|
||||
install -D -m644 LGPL_EXCEPTION.txt \
|
||||
"${pkgdir}"/usr/share/licenses/${pkgname}/LGPL_EXCEPTION.txt
|
||||
"${pkgdir}"/usr/share/licenses/${pkgbase}/LGPL_EXCEPTION.txt
|
||||
|
||||
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
|
||||
find "${pkgdir}/usr/lib" -type f -name '*.prl' \
|
||||
|
@ -121,3 +124,16 @@ package() {
|
|||
ln -s /usr/bin/$(basename $b) "${pkgdir}"/usr/bin/$(basename $b)-qt5
|
||||
done
|
||||
}
|
||||
|
||||
package_qt5-xcb-private-headers() {
|
||||
pkgdesc='Private headers for Qt5 Xcb'
|
||||
|
||||
depends=("qt5-base=$pkgver")
|
||||
optdepends=()
|
||||
groups=()
|
||||
conflicts=()
|
||||
|
||||
cd ${_pkgfqn}
|
||||
install -d -m755 "$pkgdir"/usr/include/qtxcb-private
|
||||
cp -r src/plugins/platforms/xcb/*.h "$pkgdir"/usr/include/qtxcb-private/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue