diff --git a/testing/pgbackrest/APKBUILD b/testing/pgbackrest/APKBUILD
new file mode 100644
index 0000000000000000000000000000000000000000..df5fde2ce8e3db96dfcd2ca3d392083a8229f583
--- /dev/null
+++ b/testing/pgbackrest/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Milan P. Stanić <mps@arvanta.net>
+# Maintainer: Milan P. Stanić <mps@arvanta.net>
+pkgname=pgbackrest
+pkgver=2.31
+pkgrel=0
+pkgdesc="reliable postgresql backup & restore"
+url="https://www.pgbackrest.org/"
+arch="all"
+license="MIT"
+options="!check" # no test
+makedepends="openssl-dev libxml2-dev perl postgresql-dev zlib-dev bzip2-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/pgbackrest/pgbackrest/archive/release/$pkgver.tar.gz"
+builddir="$srcdir/$pkgname"-release-$pkgver
+
+build() {
+echo $builddir
+	cd $builddir/src
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--localstatedir=/var
+	cd ..
+	make -C src
+}
+
+package() {
+	make -C src DESTDIR="$pkgdir" install
+}
+
+sha512sums="b2e26df31e3834f5d91ba72f15a7fe0f740323ca6d41210447867cbe3d9ad54fe22c102cb9c6043c8fb01e512491c383d1e3f98087a967b646c7194d866cdc26  pgbackrest-2.31.tar.gz"