🔒 Repository is read-only – file editing is disabled.

recipes/gui/qtbase/PAGBUILD.yaml main

137 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
pkgname: qtbase
pkgver: '5.15.19'
pkgrel: '1'
pkgdesc: 'A cross-platform application and UI framework'
url: 'https://qt-project.org/'
arch: x86_64
license:
- FDL
- GPL3
- LGPL3
- custom

depends: []
makedepends:
- git
- pcre2
- xorgproto
- 'xorg-libxkbfile'
- 'xorg-xtrans'
- 'xorg-libx11'
- 'xorg-libxext'
- 'xorg-libfs'
- 'xorg-libice'
- 'xorg-libsm'
- 'xcb-proto'
- libxcb
- 'xcb-util-keysyms'
- 'xcb-util-renderutil'
- 'xcb-util'
- 'xcb-util-image'
- 'xcb-util-wm'
- 'xcb-util-cursor'
- glib
- dbus
- 'xorg-fontconfig'
- 'xorg-libxrandr'
- 'xorg-libxv'
- 'xorg-libxi'
- unixodbc
- 'libjpeg-turbo'
- 'alsa-lib'
- 'xdg-utils'
- 'hicolor-icon-theme'
- 'desktop-file-utils'
- mesa
- 'xorg-libxcursor'
- 'xorg-libxrender'
- libpng
- mariadb
- icu
- libglade
- 'xorg-libxfixes'
- 'xorg-libxinerama'
- libxkbcommon
- harfbuzz
- mtdev
- postgresql
- cups
- python
- gperf
- ruby
- pulseaudio
- bluez
- libtiff
- libmng
- openal
- libxslt
- 'xorg-libxcomposite'
- gstreamer
- 'gstreamer-plugins-base'
- 'gstreamer-plugins-good'
- 'gstreamer-plugins-bad'
- hunspell
- wayland
- pcre
- gtk2
- gtk3
- nss
- pciutils
- freetype

source:
- 'https://download.qt.io/archive/qt/5.15/${pkgver}/submodules/${pkgname}-everywhere-opensource-src-${pkgver}.tar.xz'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}

  mkdir .git
  ./configure -prefix         /usr                        \
              -sysconfdir     /etc/xdg                    \
              -bindir         /usr/bin                    \
              -plugindir      /usr/lib/qt/plugins         \
              -importdir      /usr/lib/qt/imports         \
              -headerdir      /usr/include/qt             \
              -datadir        /usr/share/qt               \
              -qmldir         /usr/lib/qt/qml             \
              -archdatadir    /usr/lib/qt                 \
              -docdir         /usr/share/doc/qt           \
              -translationdir /usr/share/qt/translations  \
              -examplesdir    /usr/share/doc/qt/examples  \
              -plugin-sql-{psql,mysql,sqlite,odbc}        \
              -confirm-license    \
              -opensource         \
              -no-openssl         \
              -nomake tests       \
              -nomake examples    \
              -optimized-qmake    \
              -reduce-relocations \
              -dbus-linked        \
              -feature-menu       \
              -feature-textdate   \
              -feature-ftp        \
              -system-zlib        \
              -system-libjpeg     \
              -system-libpng      \
              -system-harfbuzz    \
              -system-sqlite      \
              -system-freetype    \
              -no-rpath
  make
  make INSTALL_ROOT=${PKGDIR} install

  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
    find "${PKGDIR}/usr/lib" -type f -name '*.prl' \
      -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;

  # Fix wrong qmake path in pri file
    sed -i "s|${pkgname}-everywhere-src-${pkgver}|/usr|" \
      ${PKGDIR}/usr/lib/qt/mkspecs/modules/qt_lib_bootstrap_private.pri

  rm -f ${PKGDIR}/usr/lib/*.la

package: |
  true