diff --git a/srcpkgs/fbpdf/template b/srcpkgs/fbpdf/template
new file mode 100644
index 0000000000..54c777fdd5
--- /dev/null
+++ b/srcpkgs/fbpdf/template
@@ -0,0 +1,25 @@
+# Template file for 'fbpdf'
+pkgname=fbpdf
+version=0.0.20150504
+revision=1
+wrksrc="fbpdf-d8a4ae1"
+build_style=gnu-makefile
+makedepends="mupdf-devel djvulibre-devel freetype-devel libressl-devel"
+short_desc="Small framebuffer PDF/DJVU viewer"
+maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
+license="BSD"
+homepage="http://repo.or.cz/w/fbpdf.git"
+distfiles="http://repo.or.cz/fbpdf.git/snapshot/d8a4ae17148d8cb68cadcb1caf8b00ac823f2ba4.tar.gz"
+checksum=2ea335d4e4b143adce5753f45ee60a246917bb9cd2f4c29a654799dd0a2ba0db
+
+post_extract() {
+	sed -i s/lopenjpeg/lopenjp2/g Makefile
+	sed -i 's/CTRL(/CTRLKEY(/g' fbpdf.c
+}
+
+do_install() {
+	vbin fbpdf
+	vbin fbdjvu
+	vdoc README  # no manpage
+	vlicense LICENSE
+}