aboutsummaryrefslogblamecommitdiffstats
path: root/community/qt5-qtx11extras/APKBUILD
blob: 7ad991cbd4cb2ac7ac5475ca2f0900e4cca47b2e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                           
                                                 
                       


                                                  
                                                 
                                   
          
                                                                                          

                            
                        
                                       

               

                                                  
    
 








                                                                                                

         
                 



            



                  
                                           






                                                                                

 
                                                                                                                                                                                                          
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtx11extras
pkgver=5.15.3_git20201027
pkgrel=0
_commit="3898f5484fd4864b047729bfeda9a1222f32364f"
pkgdesc="Provides platform-specific APIs for X11"
url="https://www.qt.io/developers/"
arch="all"
license="(LGPL-3.0-or-later OR GPL-3.0-only OR GPL-2.0-or-later) AND Qt-GPL-exception-1.0"
makedepends="qt5-qtbase-dev"
subpackages="$pkgname-dev"
replaces="qt5-x11extras"
builddir="$srcdir/qtx11extras-$_commit"

case $pkgver in
	*_beta*|*_rc*) _rel=development_releases;;
	*) _rel=official_releases;;
esac

source="https://invent.kde.org/qt/qt/qtx11extras/-/archive/$_commit/qtx11extras-$_commit.tar.gz"

prepare() {
	default_prepare

	# We need to make the build system think we're running in a git repository
	# so it correctly symlinks during the build
	mkdir .git
}

build() {
	qmake-qt5
	make
}

check() {
	make check
}

package() {
	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 -d "$pkgdir"/usr/share/licenses
	ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
}

sha512sums="3fd49498c92c37feb1d36cd94a76b37aade8a925efedd9f07046c7fcf1a0692e2f72d48c0b3263810ae69f5cd704cfce808e9714eb6a14fc0e228e05c88bf137  qtx11extras-3898f5484fd4864b047729bfeda9a1222f32364f.tar.gz"