Skip to content

Commit

Permalink
Merge pull request #115 from Rsplwe/patch-1
Browse files Browse the repository at this point in the history
Building with Qt6 under ArchLinux
  • Loading branch information
horsicq authored Jan 23, 2025
2 parents f2ad0bf + cb59e27 commit 4cee34b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ depends=(
'graphite'
'icu'
'krb5'
'qt5-base'
'qt5-script'
'qt5-svg'
'qt6-base'
'qt6-svg'
'systemd-libs'
)
makedepends=(
'coreutils'
'git'
'imagemagick'
'qt5-tools'
'qt6-tools'
)
_srcname="DIE-engine"
source=(
Expand Down Expand Up @@ -60,16 +59,16 @@ build() {
for _subdir in $_subdirs; do
pushd "$_subdir" || return
echo -e "${_prefix}${_prefix}Building $_subdir"
qmake-qt5 PREFIX=/usr QMAKE_CFLAGS="${CFLAGS}" QMAKE_CXXFLAGS="${CXXFLAGS}" QMAKE_LFLAGS="${LDFLAGS}" "$_subdir.pro"
qmake6 PREFIX=/usr QMAKE_CFLAGS="${CFLAGS}" QMAKE_CXXFLAGS="${CXXFLAGS}" QMAKE_LFLAGS="${LDFLAGS}" "$_subdir.pro"
make -f Makefile clean
make -f Makefile
popd || return
done

echo -e "${_prefix}${_prefix}Running Qt's Linguist tool chain for gui_source"
cd gui_source || return
lupdate gui_source_tr.pro
lrelease gui_source_tr.pro
/usr/lib/qt6/bin/lupdate gui_source_tr.pro
/usr/lib/qt6/bin/lrelease gui_source_tr.pro
}

package() {
Expand Down

0 comments on commit 4cee34b

Please sign in to comment.