aboutsummaryrefslogblamecommitdiffstats
path: root/testing/flameshot/APKBUILD
blob: f415fc6ea39e4a4709271be624ceff92a0edd926 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                                             
                 
            
        
                                   
                                



                                               

                                                                            
                                                                                                  
         

                                           









                                                                                          

 

                          


           
                                               
 
 
                                                                                                                                                                     
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=flameshot
pkgver=0.9.0
pkgrel=0
pkgdesc="Featureful screenshot app"
options="!check" # No test suite
url="https://github.com/lupoDharkael/flameshot"
arch="all"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="cmake qt5-qtsvg-dev qt5-qttools-dev"
subpackages="$pkgname-lang $pkgname-bash-completion $pkgname-zsh-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/lupoDharkael/flameshot/archive/v$pkgver.tar.gz
	"
langdir="/usr/share/flameshot/translations"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		$CMAKE_CROSSOPTS
	make -C build
}

check() {
	make -C build test
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="888422cd66b7c90cd6da0e824a2c12c0ca7e3cfdfd0a0499868acf9609e6c3a0977f816c656690fa101971b98a3f560cf7849b93079c091b25155360cb20ea11  flameshot-0.9.0.tar.gz"