# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=stalonetray
pkgver=0.8.3
pkgrel=0
pkgdesc="Stalonetray is a stand-alone freedesktop.org and KDE system tray"
url="http://stalonetray.sourceforge.net/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="libx11-dev libxpm-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2"

_builddir=${srcdir}/${pkgname}-${pkgver}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
        ./configure --prefix=/usr
        make
}

package() {
	cd "$_builddir"
        make DESTDIR=$pkgdir install
        install -D -m644 stalonetrayrc.sample $pkgdir/etc/stalonetrayrc
}

md5sums="ae95dbbacc2620e032acea8abab8c9ef  stalonetray-0.8.3.tar.bz2"
sha256sums="36548a588b2d466913423245dda6ffb6313132cd0cec635a117d37b3dab5fd4c  stalonetray-0.8.3.tar.bz2"
sha512sums="b1c50d844b6497b586c1ad56b721675690ea305a4e3a2601ab5305af0e208c215825eefa8fa374ae0c392252156a8dffd5882992c943344f5b6a674fe6553942  stalonetray-0.8.3.tar.bz2"
