PKGBUILDs/extra/efl/PKGBUILD

79 lines
2.7 KiB
Bash
Raw Normal View History

2014-05-26 20:39:26 +00:00
# Maintainer: Ronald van Haren <ronald@archlinux.org>
# Contributor: Enlightenment Developers <enlightenment-devel@enlightenment.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2016-09-05 16:42:04 +00:00
# - configure with --disable-neon for !aarch64
2018-02-07 11:08:33 +00:00
# - aarch64: depend on lua52, configure with --enable-lua-old
2014-05-26 20:39:26 +00:00
pkgbase=efl
pkgname=('efl' 'efl-docs')
2018-09-17 12:35:51 +00:00
pkgver=1.21.1
2018-08-23 23:31:17 +00:00
pkgrel=1
2014-05-26 20:39:26 +00:00
pkgdesc="Enlightenment Foundation Libraries"
2018-02-07 09:45:31 +00:00
arch=('x86_64')
2017-04-24 23:44:24 +00:00
url="https://www.enlightenment.org"
2014-05-26 20:39:26 +00:00
license=('BSD' 'LGPL2.1' 'GPL2' 'custom')
depends=('bullet' 'libjpeg-turbo' 'gst-plugins-base'
'luajit' 'curl' 'fribidi' 'libpulse' 'libxcomposite'
2015-12-16 13:21:09 +00:00
'libxinerama' 'libxrandr' 'libxss' 'libinput'
2014-05-26 20:39:26 +00:00
'libxcursor' 'libxp' 'libwebp' 'shared-mime-info'
2018-08-23 23:31:17 +00:00
'libxkbcommon' 'libxkbcommon-x11' 'wayland' 'lz4' 'openjpeg' 'avahi'
2018-03-07 13:39:53 +00:00
'libspectre' 'libraw' 'librsvg' 'wayland-protocols'
2018-08-23 23:31:17 +00:00
'mesa')
2018-02-07 11:08:33 +00:00
depends_aarch64=('lua52')
2016-09-05 15:40:23 +00:00
optdepends=('python2: einabench-cmp' 'libreoffice: thumbnailing for DOC/PPT/XLS files')
2018-03-07 13:39:53 +00:00
makedepends=('doxygen' 'python' 'texlive-core' 'ghostscript' 'imagemagick')
2014-05-26 20:39:26 +00:00
options=('!emptydirs')
2018-02-07 09:45:31 +00:00
source=(https://download.enlightenment.org/rel/libs/${pkgname}/$pkgname-$pkgver.tar.xz)
2018-09-17 12:35:51 +00:00
sha256sums=('44774b42b3dbbbe4d124c8fddcd169c6ffab9d602d1a757abcfb9a84e001a928')
2017-04-24 23:44:24 +00:00
2014-05-26 20:39:26 +00:00
prepare() {
2014-06-14 19:54:08 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i 's/env python$/&2/' src/scripts/eina/eina-bench-cmp
2014-05-26 20:39:26 +00:00
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export CFLAGS="$CFLAGS -fvisibility=hidden"
2016-09-05 16:42:04 +00:00
[[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon"
2018-02-07 11:08:33 +00:00
[[ $CARCH == "aarch64" ]] && CONFIG="--enable-lua-old"
2016-09-05 16:42:04 +00:00
2014-05-26 20:39:26 +00:00
./configure --prefix=/usr \
--disable-static --disable-tslib --enable-fb \
--enable-xinput22 --enable-multisense --enable-systemd \
2014-11-28 20:52:08 +00:00
--enable-image-loader-webp --enable-harfbuzz --enable-wayland \
2016-10-21 12:19:47 +00:00
--enable-liblz4 --enable-drm --enable-elput --enable-egl --with-opengl=es $CONFIG
2014-05-26 20:39:26 +00:00
make
2018-08-23 23:31:17 +00:00
cd doc
doxygen
#make -j1 doc || return 0 # don't fail on the docs
2014-05-26 20:39:26 +00:00
}
package_efl(){
2016-09-05 15:40:23 +00:00
replaces=('elementary' 'evas_generic_loaders' 'emotion_generic_players')
2014-05-26 20:39:26 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
make -j1 DESTDIR=${pkgdir} install
# install non-standard license files
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/licenses/COPYING.BSD" \
2014-06-14 19:54:08 +00:00
"${pkgdir}/usr/share/licenses/${pkgname}/COPYING.BSD"
2014-05-26 20:39:26 +00:00
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/licenses/COPYING.SMALL" \
2014-06-14 19:54:08 +00:00
"${pkgdir}/usr/share/licenses/${pkgname}/COPYING.SMALL"
2014-05-26 20:39:26 +00:00
}
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"
}