--- a/meson.build
+++ b/meson.build
@@ -42,7 +42,7 @@
 
 pod2man = find_program('pod2man')
 pkgconfig = find_program('pkg-config')
-mkdir_p = 'mkdir -p $DESTDIR/@0@'
+mkdir_p = 'mkdir -p @TERMUX_PREFIX@/@0@'
 
 pkgfile_sources = files('''
   src/match.c src/match.h
