#Packager: Vasile Coman <kerd[at]slackware[dot]eu>

pkgname=amsn
pkgver=0.98.4
pkgrel=1vc
source=("http://ignum.dl.sourceforge.net/project/amsn/amsn/$pkgver/$pkgname-$pkgver-src.tar.gz")
sourcetemplate=http://people.salixos.org/kerd/$pkgname/$pkgver/
docs=("readme" "install" "copying" "ChangeLog" "authors" "todo")
url=http://www.amsn-project.net/

slackdesc=\
(
#|-----handy-ruler----------------------------------------------|
"amsn (free MSN messenger)"
"aMSN is a free open source MSN Messenger clone, with features"
"such as: Offline Messaging, Voice Clips, Display pictures"
"Custom emoticons, Multi-language support (around 40 languages"
"currently supported), Webcam support, Sign in to more than one"
"account at once, Full-speed File transfers, Group support"
"Normal, and animated emoticons with sounds, Chat logs"
"Timestamping, Event alarms, Conferencing support"
"Tabbed chat windows"
"http://www.amsn-project.net/"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		     --sysconfdir=/etc \
		     --libdir=/usr/lib${LIBDIRSUFFIX} \
		     --localstatedir=/var/lib \
		     --build=$arch-slackware-linux || return 1
	
	make || return 1
	make install DESTDIR=$startdir/pkg

	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/64x64/apps
	cp $startdir/src/$pkgname-$pkgver/desktop-icons/48x48/apps/amsn.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	cp $startdir/src/$pkgname-$pkgver/desktop-icons/64x64/apps/amsn.png $startdir/pkg/usr/share/icons/hicolor/64x64/apps

	
}