diff --git a/community/lapack/APKBUILD b/community/lapack/APKBUILD
index c360ac7abff4b951e324d144e232e1e47973f0c1..e80ae51e4e8fcd9e335b74319d77828936e84e00 100644
--- a/community/lapack/APKBUILD
+++ b/community/lapack/APKBUILD
@@ -1,14 +1,14 @@
 # Contributor: Francesco Colista <fcolista@alpinelinux.org>
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=lapack
-pkgver=3.12.0
+pkgver=3.12.1
 pkgrel=0
 pkgdesc="Linear Algebra PACKage"
 url="https://www.netlib.org/lapack/"
 arch="all"
 license="BSD-3-Clause"
 options="!check" # Tests broken
-makedepends="gfortran cmake"
+makedepends="gfortran cmake python3-dev"
 subpackages="$pkgname-dev:_dev cblas blas blas-dev"
 source="https://github.com/Reference-LAPACK/lapack/archive/v$pkgver/lapack-v$pkgver.tar.gz"
 
@@ -19,16 +19,14 @@ build() {
 	    -DCMAKE_INSTALL_LIBDIR=lib \
 	    -DCMAKE_SKIP_RPATH=ON \
 	    -DBUILD_SHARED_LIBS=ON \
-	    -DBUILD_TESTING="$(want_check && echo ON || echo OFF)" \
+	    -DBUILD_TESTING=OFF \
 	    -DCMAKE_Fortran_COMPILER=gfortran \
 	    -DLAPACKE=ON \
-	    -DCBLAS=ON \
-	    -DBUILD_DEPRECATED=ON
+	    -DCBLAS=ON
 	cmake --build build
 }
 
 check() {
-	cd build
 	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
 }
 
@@ -74,5 +72,5 @@ cblas() {
 }
 
 sha512sums="
-f8f3c733a0221be0b3f5618235408ac59cbd4e5f1c4eab5f509b831a6ec6a9ef14b8849aa6ea10810df1aff90186ca454d15e9438d1dd271c2449d42d3da9dda  lapack-v3.12.0.tar.gz
+9749976d773830eb635498611c7f1247af8dece23fe8c08446243aa39bdcc20dd35fdc670345643cd1ec6828e379d5c2152009817e0b486c10fd89a06602e0fb  lapack-v3.12.1.tar.gz
 "