--- Makefile.orig	2005-04-13 11:59:17.000000000 -0500
+++ Makefile	2011-06-13 04:11:27.000000000 -0500
@@ -2,7 +2,7 @@
 
 DEBUG=-g # -pg
 CFLAGS+=-Wall -O2 -DVERSION=\"${VERSION}\" $(DEBUG)
-LDFLAGS=-lgpgme $(DEBUG)
+LDFLAGS+=-lgpgme $(DEBUG) `pth-config --libs`
 
 OBJS=nasty.o
 
@@ -12,7 +12,7 @@
 	$(CC) -Wall -W $(OBJS) $(LDFLAGS) -o nasty
 
 install: nasty
-	cp nasty /usr/bin
+	install -m 755 nasty ${prefix}/bin
 
 clean:
 	rm -f $(OBJS) nasty core
