initial import
This commit is contained in:
40
qt-quickcontrols2/PKGBUILD
Normal file
40
qt-quickcontrols2/PKGBUILD
Normal file
@@ -0,0 +1,40 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=qt-quickcontrols2
|
||||
_pkgbasename=qtquickcontrols2
|
||||
_qtver=5.15.2
|
||||
pkgver=${_qtver/-/}
|
||||
pkgrel=1
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://www.qt.io'
|
||||
license=('LGPL-3')
|
||||
pkgdesc='Next generation user interface controls based on Qt Quick'
|
||||
depends=('qt-declarative')
|
||||
optdepends=('qt-graphicaleffects: for the Material style')
|
||||
groups=('qt')
|
||||
_pkgfqn="${_pkgbasename/5-/}-everywhere-src-${_qtver}"
|
||||
source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
|
||||
sha512sums=('5af506fd5842c505ae5fbd04fdd2a467c5b6a9547b4cea80c9cf051e9dea49bbf17843d8bc12e69e95810e70119c2843c24171c84e0f5df62dd2f59a39903c8f')
|
||||
|
||||
prepare() {
|
||||
mkdir -p build
|
||||
}
|
||||
|
||||
build() {
|
||||
cd build
|
||||
|
||||
qmake ../${_pkgfqn}
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd build
|
||||
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' {} \;
|
||||
|
||||
# Install license
|
||||
install -D -m644 "${srcdir}"/${_pkgfqn}/LICENSE.LGPL3 "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.LGPL3
|
||||
}
|
||||
Reference in New Issue
Block a user