diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 78 |
1 files changed, 37 insertions, 41 deletions
@@ -12,17 +12,17 @@ arch=("i686" "x86_64") url="https://qt-project.org/" license=("GPL3" "LGPL") depends=( - "dbus" "xcb-util-keysyms" "xcb-util-wm" "xcb-util-image" - "libxext" "inputproto" "libgl" "libxkbcommon" "systemd" - "libpng" "sqlite" "fontconfig" "icu" "libxrender" "libinput" +"dbus" "xcb-util-keysyms" "xcb-util-wm" "xcb-util-image" +"libxext" "inputproto" "libgl" "libxkbcommon" "systemd" +"libpng" "sqlite" "fontconfig" "icu" "libxrender" "libinput" "qtchooser" ) makedepends=("git" "postgresql-libs" "gtk2") optdepends=( - "qtchooser: set the default Qt toolkit" - "postgresql-libs: PostgreSQL driver" - "libmariadbclient: MariaDB driver" - "unixodbc: ODBC driver" - "libfbclient: Firebird/iBase driver" +"qtchooser: set the default Qt toolkit" +"postgresql-libs: PostgreSQL driver" +"libmariadbclient: MariaDB driver" +"unixodbc: ODBC driver" +"libfbclient: Firebird/iBase driver" ) provides=("$_pkgname") conflicts=("$_pkgname" "qtchooser") @@ -31,49 +31,45 @@ source=("$_pkgname::git://code.qt.io/qt/qtbase.git#branch=dev") sha256sums=("SKIP") pkgver() { - cd "$srcdir/$_pkgname" - # cutting off 'foo-' prefix that presents in the git tag - git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + cd "$srcdir/$_pkgname" + # cutting off 'foo-' prefix that presents in the git tag + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { - cd "$srcdir/$_pkgname" - sed -i "s|-O2|${CXXFLAGS}|" mkspecs/common/{g++,gcc}-base.conf - sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" "mkspecs/common/gcc-base-unix.conf" - sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" "mkspecs/common/gcc-base.conf" + cd "$srcdir/$_pkgname" + sed -i "s|-O2|${CXXFLAGS}|" mkspecs/common/{g++,gcc}-base.conf + sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" "mkspecs/common/gcc-base-unix.conf" + sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" "mkspecs/common/gcc-base.conf" } build() { - cd "$srcdir/$_pkgname" + cd "$srcdir/$_pkgname" - ./configure -confirm-license -opensource \ - -prefix /usr \ - -bindir /usr/lib/qt/bin \ - -docdir /usr/share/doc/qt \ - -headerdir /usr/include/qt \ - -archdatadir /usr/lib/qt \ - -datadir /usr/share/qt \ - -sysconfdir /etc/xdg \ - -examplesdir /usr/share/doc/qt/examples \ - -system-sqlite \ - -openssl-linked \ - -nomake examples \ - -nomake tests \ - -no-rpath \ - -optimized-qmake \ - -dbus-linked \ - -reduce-relocations \ + ./configure -confirm-license -opensource \ + -prefix /usr \ + -bindir /usr/lib/qt/bin \ + -docdir /usr/share/doc/qt \ + -headerdir /usr/include/qt \ + -archdatadir /usr/lib/qt \ + -datadir /usr/share/qt \ + -sysconfdir /etc/xdg \ + -examplesdir /usr/share/doc/qt/examples \ + -system-sqlite \ + -openssl-linked \ + -nomake examples \ + -nomake tests \ + -no-rpath \ + -optimized-qmake \ + -dbus-linked \ + -reduce-relocations \ -egl \ -eglfs \ - -libinput - make + -libinput + make } package() { - cd "$srcdir/$_pkgname" - make INSTALL_ROOT="$pkgdir" install - for file in "${pkgdir}"/usr/lib/qt/bin/*; do - mkdir -p "${pkgdir}"/usr/bin - ln -s /usr/lib/qt/bin/$(basename $file) "${pkgdir}"/usr/bin/$(basename $file) - done + cd "$srcdir/$_pkgname" + make INSTALL_ROOT="$pkgdir" install } |