#Packager: Vasile Coman <kerd[at]salixos[dot]org>

#Mandatory
pkgname=pidgin-otr
pkgver=4.0.0
pkgrel=1rl
source=("http://www.cypherpunks.ca/otr/$pkgname-$pkgver.tar.gz")
sourcetemplate=http://people.salixos.org/kerd/$pkgname/$pkgver/
docs=('authors' 'copying' 'changelog' 'install' 'news' 'readme')
url="http://www.cypherpunks.ca/otr/"
 
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"pidgin-otr (Off-the-Record (OTR) Messaging for Pidgin)"
"Allows you to have private conversations over instant messaging when"
"talking on Pidgin by providing:"
"- Encryption: No one else can read your instant messages."
"- Authentication: You are assured the correspondent is who you"
"think it is."
"- Deniability: The messages you send do not have digital"
"signatures that are checkable by a third party."
"- Perfect forward secrecy"
"http://www.cypherpunks.ca/otr/"
)

build() {
	cd $startdir/src/$pkgname-$pkgver
        ./configure --prefix=/usr \
  		--libdir=/usr/lib${LIBDIRSUFFIX} \
  		--sysconfdir=/etc \
  		--localstatedir=/var \
  		--enable-static=no \
  		--build=$ARCH-slackware-linux || return 1

  	make || return 1
  	make install DESTDIR=$startdir/pkg || return 1
}