diff --git a/community/asio/APKBUILD b/community/asio/APKBUILD
index cd1f2dc6cb5ade71a206eee0f439789cbf108cf1..a779360589fe9241f485c10fa5f11d24a4f05839 100644
--- a/community/asio/APKBUILD
+++ b/community/asio/APKBUILD
@@ -1,6 +1,6 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=asio
-pkgver=1.21.0
+pkgver=1.22.1
 pkgrel=0
 pkgdesc="Cross-platform C++ library for network programming"
 url="https://think-async.com/Asio/"
@@ -9,14 +9,9 @@ license="BSL-1.0"
 depends_dev="boost-dev openssl1.1-compat-dev"
 makedepends="$depends_dev"
 subpackages="$pkgname-dev"
-source="https://downloads.sourceforge.net/sourceforge/asio/asio-$pkgver.tar.bz2"
-
-prepare() {
-	default_prepare
-
-	update_config_sub
-	update_config_guess
-}
+source="https://downloads.sourceforge.net/sourceforge/asio/asio-$pkgver.tar.bz2
+	skip-cpp20.patch
+	"
 
 build() {
 	./configure \
@@ -36,5 +31,6 @@ package() {
 }
 
 sha512sums="
-62252b2d3ca4fb99579c5fe57bf64b700792198dd7fa45acb4af7f64e83494bade1885b848f9e364f4c42d9db025841324cbd9a0fd3fe45526e7e4be6f60f8c0  asio-1.21.0.tar.bz2
+be4a066d9f73662f68a771f63a59fc2e16e8ee1ae1ca6c581e09922514029e58c479edfc0517ee6b29a1fd377d202a2a6eb80d9d17f6e957233c11331f04a479  asio-1.22.1.tar.bz2
+869049599ca3e093340280618ac1412380538d5290171511a8c93bee6c64650a225c763d3a79dead556bb699f69a0b54b182da9f43bd6d81823013936e9697e3  skip-cpp20.patch
 "
diff --git a/community/asio/skip-cpp20.patch b/community/asio/skip-cpp20.patch
new file mode 100644
index 0000000000000000000000000000000000000000..312ceac4a1efb5e03fc7192883f1bc8b88bfbf9c
--- /dev/null
+++ b/community/asio/skip-cpp20.patch
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -5766,7 +5766,7 @@
+ fi
+ 
+ 
+-ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/tests/Makefile src/tests/properties/Makefile src/examples/cpp03/Makefile src/examples/cpp11/Makefile src/examples/cpp14/Makefile src/examples/cpp17/Makefile src/examples/cpp20/Makefile"
++ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/tests/Makefile src/tests/properties/Makefile src/examples/cpp03/Makefile src/examples/cpp11/Makefile src/examples/cpp14/Makefile src/examples/cpp17/Makefile"
+ 
+ cat >confcache <<\_ACEOF
+ # This file is a shell script that caches the results of configure