opt/qt6-remoteobjects/Pkgfile

23 lines
865 B
Plaintext
Raw Normal View History

# Description: Inter-process communication (IPC) module developed for Qt
# URL: https://www.qt.io/
2023-07-21 21:34:29 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: qt6-declarative
name=qt6-remoteobjects
2024-03-28 01:50:56 +01:00
version=6.6.3
release=1
source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtremoteobjects-everywhere-src-$version.tar.xz)
build() {
2023-07-21 21:34:29 +02:00
prt-get isinst ninja && PKGMK_QT6+=' -G Ninja'
prt-get isinst ccache && PKGMK_QT6+=' -D QT_USE_CCACHE=ON' && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
2023-07-21 21:34:29 +02:00
cmake -S qtremoteobjects-everywhere-src-$version -B build $PKGMK_QT6 \
-D INSTALL_PUBLICBINDIR=usr/bin \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
cmake --build build
DESTDIR=$PKG cmake --install build
}