diff --git a/pkgs/qtbase/build.sh b/pkgs/qtbase/build.sh new file mode 100644 index 0000000..0cef6bf --- /dev/null +++ b/pkgs/qtbase/build.sh @@ -0,0 +1,37 @@ +pkgname=qtbase +pkgver=5.12 + +fetch() { + curl "https://invent.kde.org/qt/qt/qtbase/-/archive/$pkgver/qtbase-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + mkdir $pkgname-$pkgver/build + mkdir $pkgname-$pkgver/.git +} + +build() { + cd $pkgname-$pkgver + cd build + + ../configure \ + -opensource \ + -confirm-license \ + -nomake examples \ + -nomake tests \ + -platform linux-clang-libc++ \ + -no-openssl \ + -prefix /usr + + gmake +} + +package() { + cd $pkgname-$pkgver + cd build + gmake INSTALL_ROOT=$pkgdir install +} + +license() { + cd $pkgname-$pkgver + cat LICENSE* +# cat COPYING +} diff --git a/pkgs/qtbase/musl-socket.patch b/pkgs/qtbase/musl-socket.patch new file mode 100644 index 0000000..11b9181 --- /dev/null +++ b/pkgs/qtbase/musl-socket.patch @@ -0,0 +1,11 @@ +--- a/mkspecs/linux-clang/qplatformdefs.h ++++ b/mkspecs/linux-clang/qplatformdefs.h +@@ -81,7 +81,7 @@ + + #undef QT_SOCKLEN_T + +-#if defined(__GLIBC__) && (__GLIBC__ >= 2) ++#if defined(__GLIBC__) && (__GLIBC__ >= 2) || !defined(__GLIBC__) + #define QT_SOCKLEN_T socklen_t + #else + #define QT_SOCKLEN_T int diff --git a/pkgs/qtbase/qplatformdefs.h b/pkgs/qtbase/qplatformdefs.h new file mode 100644 index 0000000..f5d0562 --- /dev/null +++ b/pkgs/qtbase/qplatformdefs.h @@ -0,0 +1,95 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the qmake spec of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef QPLATFORMDEFS_H +#define QPLATFORMDEFS_H + +// Get Qt defines/settings + +#include "qglobal.h" + +// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs + +// 1) need to reset default environment if _BSD_SOURCE is defined +// 2) need to specify POSIX thread interfaces explicitly in glibc 2.0 +// 3) it seems older glibc need this to include the X/Open stuff +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif + +#include + +// We are hot - unistd.h should have turned on the specific APIs we requested + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define QT_USE_XOPEN_LFS_EXTENSIONS +#include "../common/posix/qplatformdefs.h" + +#undef QT_SOCKLEN_T + +#if defined(__GLIBC__) && (__GLIBC__ >= 2) || !defined(__GLIBC__) +#define QT_SOCKLEN_T socklen_t +#else +#define QT_SOCKLEN_T int +#endif + +#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500) +#define QT_SNPRINTF ::snprintf +#define QT_VSNPRINTF ::vsnprintf +#endif + +#endif // QPLATFORMDEFS_H diff --git a/pkgs/qtwayland/build.sh b/pkgs/qtwayland/build.sh new file mode 100644 index 0000000..ed1ebcc --- /dev/null +++ b/pkgs/qtwayland/build.sh @@ -0,0 +1,26 @@ +pkgname=qtwayland +pkgver=5.12 + +fetch() { + curl "https://invent.kde.org/qt/qt/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz + mkdir $pkgname-$pkgver/.git +} + +build() { + cd $pkgname-$pkgver + + qmake + gmake +} + +package() { + cd $pkgname-$pkgver + gmake INSTALL_ROOT=$pkgdir install +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +# cat COPYING +}