# $Id: PKGBUILD 140259 2011-10-11 03:24:04Z eric $
# Maintainer: Eric BĂ©langer <eric@archlinux.org>

pkgname=enlightenment
pkgver=1.0.10
_themever=1.0.1
pkgrel=8
pkgdesc="A fast, flexible, and very extensible Window Manager"
arch=('i686' 'x86_64')
url="http://www.enlightenment.org"
license=('BSD' 'custom')
depends=('libxinerama' 'imlib2' 'perl' 'pango' 'libxcomposite' \
         'libxdamage' 'libxrandr'  'audiofile')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/e16-${pkgver}.tar.gz \
	startup.patch)

build() {
  cd "${srcdir}/e16-${pkgver}"
  patch -p0 < $srcdir/startup.patch || return 1

  ./configure --prefix=/usr --sysconfdir=/etc 
  make

#  cd "${srcdir}/e16-themes-${_themever}"
#  ./configure --prefix=/usr
}

package() {
  cd "${srcdir}/e16-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"

#  cd "${srcdir}/e16-themes-${_themever}"
#  make DESTDIR="${pkgdir}" install
#  chown -R root:root "${pkgdir}"/usr/share/*
}
md5sums=('87441a2e7c4639e5d23198ed7bc834ea'
         'ed24a9be5437ca5c53e723cc1a584abd')