diff --git a/srcpkgs/python3-drgn/template b/srcpkgs/python3-drgn/template
new file mode 100644
index 0000000000..f5bd4b72a2
--- /dev/null
+++ b/srcpkgs/python3-drgn/template
@@ -0,0 +1,21 @@
+# Template file for 'python3-drgn'
+pkgname=python3-drgn
+version=0.0.14
+revision=1
+wrksrc="drgn-${version}"
+build_style=python3-module
+hostmakedepends="automake libtool pkg-config python3-setuptools"
+makedepends="elfutils-devel libgomp-devel python3-devel libkdumpfile-devel"
+depends="python3"
+short_desc="Scriptable debugger library"
+maintainer="Leah Neukirchen <leah@vuxu.org>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/osandov/drgn/"
+distfiles="https://github.com/osandov/drgn/archive/refs/tags/v${version}.tar.gz"
+checksum=97088c7f32fcfbad0795159807e3290794cacc011228bd27e86510eb62e73bc3
+
+pre_build() {
+	if [ "$CROSS_BUILD" ]; then
+		export CONFIGURE_FLAGS="--host=$XBPS_CROSS_TRIPLET --with-libtool-sysroot=$XBPS_CROSS_BASE"
+	fi
+}