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

pkgname=enlightenment
pkgver=1.0.15
_themever=1.0.1
pkgrel=1
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=('a3ab3a965d73109b4a929368b5cd4ae7'
         '0098d0a6469ec539bf12eeda2171d540')