Skip to content

Commit

Permalink
efl: update to 1.27.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiChinoune committed Jan 8, 2024
1 parent a438ea0 commit 216dbaf
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 301 deletions.
83 changes: 46 additions & 37 deletions mingw-w64-efl/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
# Maintainer: Carsten Haitzler <raster@rasterman.com>
# Contributor: Ryan Gammon <ryan@gamnation.net>

_pkgname=efl
pkgbase=mingw-w64-${_pkgname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_pkgname}"
pkgver=1.25.0.r672.gd9ec36e1de
_realname=efl
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.27.0
pkgrel=1
pkgdesc="Enlightenment Foundation Libraries - Development version (mingw-w64)"
arch=('any')
mingw_arch=('mingw64')
mingw_arch=('mingw64' 'ucrt64' 'clang64')
url="https://www.enlightenment.org"
license=('BSD' 'LGPL2.1' 'GPL2' 'MIT' 'custom')
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs" "${MINGW_PACKAGE_PREFIX}-openjpeg2"
"${MINGW_PACKAGE_PREFIX}-lz4" "${MINGW_PACKAGE_PREFIX}-luajit"
"${MINGW_PACKAGE_PREFIX}-libjpeg-turbo" "${MINGW_PACKAGE_PREFIX}-dbus"
"${MINGW_PACKAGE_PREFIX}-libsndfile" "${MINGW_PACKAGE_PREFIX}-libpng"
"${MINGW_PACKAGE_PREFIX}-libtiff" "${MINGW_PACKAGE_PREFIX}-libavif"
"${MINGW_PACKAGE_PREFIX}-libheif" "${MINGW_PACKAGE_PREFIX}-libjxl"
"${MINGW_PACKAGE_PREFIX}-freetype" "${MINGW_PACKAGE_PREFIX}-fontconfig"
"${MINGW_PACKAGE_PREFIX}-fribidi" "${MINGW_PACKAGE_PREFIX}-pixman"
"${MINGW_PACKAGE_PREFIX}-gstreamer" "${MINGW_PACKAGE_PREFIX}-gst-plugins-base"
"${MINGW_PACKAGE_PREFIX}-libraw" "${MINGW_PACKAGE_PREFIX}-openssl")
msys2_repository_url="https://git.enlightenment.org/enlightenment/efl"
license=('spdx:Apache-2.0 AND BSD-2-Clause AND MIT AND FTL AND GPL-2.0-or-later AND LGPL-2.1-only')
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-openjpeg2"
"${MINGW_PACKAGE_PREFIX}-lz4"
"${MINGW_PACKAGE_PREFIX}-luajit"
"${MINGW_PACKAGE_PREFIX}-libjpeg-turbo"
"${MINGW_PACKAGE_PREFIX}-dbus"
"${MINGW_PACKAGE_PREFIX}-libsndfile"
"${MINGW_PACKAGE_PREFIX}-libpng"
"${MINGW_PACKAGE_PREFIX}-libtiff"
"${MINGW_PACKAGE_PREFIX}-libavif"
"${MINGW_PACKAGE_PREFIX}-libheif"
"${MINGW_PACKAGE_PREFIX}-libjxl"
"${MINGW_PACKAGE_PREFIX}-freetype"
"${MINGW_PACKAGE_PREFIX}-fontconfig"
"${MINGW_PACKAGE_PREFIX}-fribidi"
"${MINGW_PACKAGE_PREFIX}-pixman"
"${MINGW_PACKAGE_PREFIX}-gstreamer"
"${MINGW_PACKAGE_PREFIX}-gst-plugins-base"
"${MINGW_PACKAGE_PREFIX}-libraw"
"${MINGW_PACKAGE_PREFIX}-openssl")
makedepends=(
"${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-mono"
"${MINGW_PACKAGE_PREFIX}-meson"
"${MINGW_PACKAGE_PREFIX}-pkgconf"
"git"
)
_commit="d9ec36e1de4c2a70ac82dc66a72c282dc42037b7"
source=("git+https://git.enlightenment.org/enlightenment/efl.git#commit=${_commit}"
"fix-prefix.patch"
"winmono.patch")
sha256sums=('SKIP'
'9ec7c0a0587a075133ef0d4cb986e9d26970a77cc42d23dfa5ed466d4b851bd5'
'b89925237f5f47b04b44f4328a35263d2c5292727518d2f367abc919482a853f')

pkgver() {
cd "$_pkgname"

git describe --long "${_commit}" | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}
source=("https://download.enlightenment.org/rel/libs/${_realname}/${_realname}-${pkgver}.tar.xz"
"fix-prefix.patch")
sha256sums=('3dfb99fbcc268c0bc797e2f83e8c503ef9de66284f40b381bb597a08185c00f4'
'9ec7c0a0587a075133ef0d4cb986e9d26970a77cc42d23dfa5ed466d4b851bd5')

prepare() {
cd "$_pkgname"
cd "${_realname}-${pkgver}"

patch -Np1 -i "${srcdir}/fix-prefix.patch"
patch -Np1 -i "${srcdir}/winmono.patch"

# Work around https://github.com/mesonbuild/meson/issues/7267 by creating mcs.bat based on
# https://github.com/mono/release/blob/master/windows-installer/bat/wrapper.bat
Expand All @@ -59,15 +59,24 @@ prepare() {
build() {
mkdir -p "build-${MSYSTEM}" && cd "build-${MSYSTEM}"

declare -a _extra_config
if check_option "debug" "n"; then
_extra_config+=("--buildtype=release")
else
_extra_config+=("--buildtype=debug")
fi

# EFL_RUN_IN_TREE needs to be set manually on Windows. See:
# https://github.com/Enlightenment/efl-ci/commit/18ce3e8066f954bd32f2ba890e308def86c6a668
export EFL_RUN_IN_TREE=1

CFLAGS+=" -Wno-implicit-function-declaration" \
MSYS2_ARG_CONV_EXCL="--prefix=" \
CSC="${srcdir}/${_pkgname}/csc.bat" \
CSC="${srcdir}/${_realname}-${pkgver}/csc.bat" \
${MINGW_PREFIX}/bin/meson setup \
--prefix="${MINGW_PREFIX}" \
--default-library shared \
"${_extra_config[@]}" \
-Dsystemd=false \
-Dpulseaudio=false \
-Dv4l2=false \
Expand All @@ -86,7 +95,7 @@ build() {
-Dbindings=mono \
-Dbuild-examples=false \
-Dbuild-tests=false \
"../${_pkgname}"
"../${_realname}-${pkgver}"

${MINGW_PREFIX}/bin/meson compile
}
Expand All @@ -96,7 +105,7 @@ package() {

DESTDIR="$pkgdir" ${MINGW_PREFIX}/bin/meson install

cd "${srcdir}/${_pkgname}"
install -Dm644 -t "${pkgdir}${MINGW_PREFIX}/share/doc/$_pkgname/" README.md
install -Dm644 -t "${pkgdir}${MINGW_PREFIX}/share/licenses/$pkgname/" AUTHORS COMPLIANCE COPYING
cd "${srcdir}/${_realname}-${pkgver}"
install -Dm644 -t "${pkgdir}${MINGW_PREFIX}/share/doc/${_realname}/" README.md
install -Dm644 -t "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/" AUTHORS COMPLIANCE COPYING
}
264 changes: 0 additions & 264 deletions mingw-w64-efl/winmono.patch

This file was deleted.

0 comments on commit 216dbaf

Please sign in to comment.