aboutsummaryrefslogblamecommitdiffstats
path: root/community/vidstab/APKBUILD
blob: a000e2c75b58af64a99777ecf4eaf0a055164846 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                  
            
        




                                         
                                                                                           

                           
                                   

         
                                                              
 
                        
                                         
                                             
                      
                           


         
                



                                          
                                                              

 
                                                                                                                                                                     
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=vidstab
pkgver=1.1.0
pkgrel=1
arch="all"
url="http://public.hronopik.de/vid.stab/"
pkgdesc="Video stabilization library"
license="GPL-2.0-or-later"
makedepends="cmake"
source="https://github.com/georgmartius/vid.stab/archive/v$pkgver/vid.stab-v$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # No tests
builddir="$srcdir/vid.stab-$pkgver"

build() {
	[ "$CARCH" = "riscv64" ] && _sse2="-DSSE2_FOUND=false"

	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		$_sse2
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="e82a4b6dd854b8415952cc0a8bdea06c01ff40a497c8e98177831e29031ec535b9f47cc30d5444c47bfd91871615a1662e3991185e9eb179acf37ea601073cdf  vid.stab-v1.1.0.tar.gz"