diff --git a/srcpkgs/whois/template b/srcpkgs/whois/template
index 6b6125d996..ac1cbde371 100644
--- a/srcpkgs/whois/template
+++ b/srcpkgs/whois/template
@@ -1,7 +1,10 @@
 # Template file for 'whois'
 pkgname=whois
-version=5.2.4
+version=5.2.5
 revision=1
+build_pie=yes
+build_style=gnu-makefile
+make_build_args="prefix=/usr HAVE_LIBIDN=1"
 hostmakedepends="perl"
 makedepends="libidn-devel"
 short_desc="An improved whois client"
@@ -9,12 +12,7 @@ maintainer="Juan RP <xtraeme@gmail.com>"
 homepage="http://www.linux.it/~md/software"
 license="GPL-2"
 distfiles="${DEBIAN_SITE}/main/w/${pkgname}/${pkgname}_${version}.tar.xz"
-checksum=f1827e3b61e6f647b6093e6dcf52d3b44775fdbd6bf0cf7413aff26825f0bc43
-
-do_build() {
-	# This is needed to set CFLAGS properly
-	make ${makejobs} prefix=/usr CFLAGS="$CFLAGS" HAVE_LIBIDN=1
-}
+checksum=1a84fb9c1190dc37df396ea1f24aae56a1beb846257ee692c9d4b44337135d10
 
 do_install() {
 	make prefix=/usr BASEDIR=${DESTDIR} install-whois