PKGBUILDs/extra/efl/PKGBUILD

93 lines
3.2 KiB
Bash
Raw Normal View History

2023-03-15 17:55:56 +00:00
# Contributor: Ronald van Haren <ronald@archlinux.org>
2014-05-26 20:39:26 +00:00
# Contributor: Enlightenment Developers <enlightenment-devel@enlightenment.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2019-12-13 06:56:41 +00:00
# - configure with -Dnative-arch-optimization=false for !aarch64
2014-05-26 20:39:26 +00:00
pkgbase=efl
pkgname=('efl' 'efl-docs')
2022-09-16 14:43:15 +00:00
pkgver=1.26.3
2023-03-15 17:55:56 +00:00
pkgrel=6
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"
2021-12-26 15:57:37 +00:00
license=('BSD' 'LGPL2.1' 'GPL2' 'MIT' 'custom')
2023-03-15 17:55:56 +00:00
depends=('curl' 'dbus' 'fontconfig' 'freetype2' 'fribidi' 'giflib' 'glib2' 'gstreamer'
'gst-plugins-base-libs' 'harfbuzz' 'hicolor-icon-theme' 'libglvnd' 'libinput'
'libjpeg-turbo' 'libpng' 'libpulse' 'libsndfile' 'libtiff' 'libunwind' 'libwebp' 'libx11'
'libxcb' 'libxcomposite' 'libxcursor' 'libxdamage' 'libxext' 'libxfixes' 'libxi'
'libxinerama' 'libxkbcommon' 'libxkbcommon-x11' 'libxrandr' 'libxrender' 'libxss'
'libxtst' 'lua52' 'mailcap' 'mesa' 'openjpeg2' 'openssl' 'shared-mime-info' 'systemd-libs'
'ttf-font' 'util-linux-libs' 'wayland' 'zlib')
2021-12-26 15:57:37 +00:00
optdepends=('gst-plugins-base: Video and thumbnail codecs'
2019-12-13 06:56:41 +00:00
'gst-plugins-good: Video and thumbnail codecs'
'gst-plugins-bad: Video and thumbnail codecs'
'gst-plugins-ugly: Video and thumbnail codecs'
'gst-libav: Video and thumbnails with ffmpeg/libav'
2023-03-15 17:55:56 +00:00
'libraw: RAW image loader'
'libreoffice: Office document loader'
'librsvg: SVG loader'
'libspectre: PostScript loader'
'poppler: PDF loader'
'scim: IM module for SCIM')
makedepends=('doxygen' 'libraw' 'librsvg' 'libspectre' 'meson' 'ninja' 'poppler' 'python' 'scim'
'texlive-core' 'wayland-protocols')
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)
2022-09-16 14:43:15 +00:00
sha256sums=('d9f83aa0fd9334f44deeb4e4952dc0e5144683afac786feebce6030951617d15')
2019-12-13 06:56:41 +00:00
2014-05-26 20:39:26 +00:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export CFLAGS="$CFLAGS -fvisibility=hidden"
2019-12-13 06:56:41 +00:00
if [ -d build ]; then
rm -rf build
fi
mkdir -p build
[[ $CARCH != "aarch64" ]] && CONFIG="-Dnative-arch-optimization=false"
2016-09-05 16:42:04 +00:00
2019-12-13 06:56:41 +00:00
meson --prefix=/usr \
-Dfb=true \
-Ddrm=true \
-Dwl=true \
-Dnetwork-backend=connman \
2021-12-26 15:57:37 +00:00
-Dlua-interpreter=lua \
2019-12-13 06:56:41 +00:00
-Dbindings= \
-Dbuild-examples=false \
-Dbuild-tests=false \
$CONFIG . build
2014-05-26 20:39:26 +00:00
2019-12-13 06:56:41 +00:00
ninja -C build
2018-08-23 23:31:17 +00:00
2019-12-13 06:56:41 +00:00
cd build/doc
2018-08-23 23:31:17 +00:00
doxygen
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}"
2019-12-13 06:56:41 +00:00
DESTDIR="${pkgdir}" ninja -C build install
2021-12-26 15:57:37 +00:00
2014-05-26 20:39:26 +00:00
# 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=()
2019-12-13 06:56:41 +00:00
cd "${srcdir}/${pkgbase}-${pkgver}/build"
2014-05-26 20:39:26 +00:00
install -d "${pkgdir}/usr/share/doc/${pkgbase}"
2019-12-13 06:56:41 +00:00
cp -a html "${pkgdir}/usr/share/doc/${pkgbase}/html"
cp -a latex "${pkgdir}/usr/share/doc/${pkgbase}/latex"
#cp -a man "${pkgdir}/usr/share"
2014-05-26 20:39:26 +00:00
}