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


                                                  
                                                        
                                   
          
                                                                                          
                                     
                          
                                 
 
               

                                                  

    








                                                                                    
 
         

                 

 
         
                  


           







                                                                                

 
                                                                                                                                                                                                    
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtsvg
pkgver=5.15.3_git20200406
pkgrel=0
_commit="95990cbeebc0ab9959e2a925a93ad4897416bbb7"
pkgdesc="Qt5 - Support for rendering and displaying SVG"
url="https://www.qt.io/developers/"
arch="all"
license="(LGPL-2.0-or-later OR GPL-3.0-only OR GPL-2.0-or-later) AND Qt-GPL-exception-1.0"
makedepends="qt5-qtbase-dev zlib-dev"
subpackages="$pkgname-dev"
builddir="$srcdir/qtsvg-$_commit"

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

source="https://invent.kde.org/qt/qt/qtsvg/-/archive/$_commit/qtsvg-$_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="e9ca3937233e91be9e40cfb6d792b87ffdf98f7ee24e57b0182e68967a9a2c61a492233e36294b87f8e7355659236865b9d730effa83b106a5768b13c61ad470  qtsvg-95990cbeebc0ab9959e2a925a93ad4897416bbb7.tar.gz"