diff -Naur pacman-2.9.8.orig/scripts/makepkg pacman-2.9.8/scripts/makepkg
--- pacman-2.9.8.orig/scripts/makepkg	2012-01-17 23:45:19.000000000 +0000
+++ pacman-2.9.8/scripts/makepkg	2012-06-22 23:05:22.000000000 +0000
@@ -540,6 +540,8 @@
 				cmd="tar --use-compress-program=gzip -xf $file" ;;
 				*.tar.bz2|*.tbz2)
 				cmd="tar --use-compress-program=bzip2 -xf $file" ;;
+				*.tar.xz)
+				cmd="tar --use-compress-program=xz -xf $file" ;;
 				*.tar)
 				cmd="tar -xf $file" ;;
 				*.zip)
@@ -549,6 +551,8 @@
 				cmd="gunzip $file" ;;
 				*.bz2)
 				cmd="bunzip2 $file" ;;
+				*.xz)
+				cmd="xz -d $file" ;;
 			esac
 			if [ "$cmd" != "" ]; then
 				msg "    $cmd"
