PKGBUILDs/extra/efl/PKGBUILD
2016-05-14 18:43:29 +00:00

74 lines
2.4 KiB
Bash

# $Id$
# Maintainer: Ronald van Haren <ronald@archlinux.org>
# Contributor: Enlightenment Developers <enlightenment-devel@enlightenment.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - configure with --disable-neon
pkgbase=efl
pkgname=('efl' 'efl-docs')
pkgver=1.17.0
pkgrel=2
pkgdesc="Enlightenment Foundation Libraries"
arch=('i686' 'x86_64')
url="http://www.enlightenment.org"
license=('BSD' 'LGPL2.1' 'GPL2' 'custom')
depends=('bullet' 'libjpeg-turbo' 'gst-plugins-base'
'luajit' 'curl' 'fribidi' 'libpulse' 'libxcomposite'
'libxinerama' 'libxrandr' 'libxss' 'libinput'
'libxcursor' 'libxp' 'libwebp' 'shared-mime-info'
'libxkbcommon' 'wayland' 'lz4' 'openjpeg' 'avahi')
optdepends=('python2: einabench-cmp')
makedepends=('doxygen' 'python' 'texlive-core' 'ghostscript')
replaces=('ecore' 'edje' 'eet' 'eeze' 'efreet' 'eina' 'eio' 'embryo'
'emotion' 'ethumb' 'evas')
options=('!emptydirs')
source=(http://download.enlightenment.org/rel/libs/${pkgname}/$pkgname-$pkgver.tar.xz
'eina_doxygen.patch')
sha1sums=('bcdc546fcd34ff04d876ab86ecfbc47afc623a69'
'ef2b961e793c711685623a149ab55b1bec9a3676')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i 's/env python$/&2/' src/scripts/eina/eina-bench-cmp
# fix docs building
patch -Np0 -i ${srcdir}/eina_doxygen.patch
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export CFLAGS="$CFLAGS -fvisibility=hidden"
./configure --prefix=/usr \
--disable-static --disable-tslib --enable-fb \
--enable-xinput22 --enable-multisense --enable-systemd \
--enable-image-loader-webp --enable-harfbuzz --enable-wayland \
--enable-liblz4 --enable-drm --disable-neon
make
make -j1 doc
}
package_efl(){
cd "${srcdir}/${pkgname}-${pkgver}"
make -j1 DESTDIR=${pkgdir} install
# install non-standard license files
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/licenses/COPYING.BSD" \
"${pkgdir}/usr/share/licenses/${pkgname}/COPYING.BSD"
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/licenses/COPYING.SMALL" \
"${pkgdir}/usr/share/licenses/${pkgname}/COPYING.SMALL"
}
package_efl-docs() {
pkgdesc="Documentation for the Enlightenment Foundation Libraries"
depends=()
cd "${srcdir}/${pkgbase}-${pkgver}"
install -d "${pkgdir}/usr/share/doc/${pkgbase}"
cp -a doc/html "${pkgdir}/usr/share/doc/${pkgbase}/html"
cp -a doc/latex "${pkgdir}/usr/share/doc/${pkgbase}/latex"
}