lazka / msys2-staging

Various WIP MSYS2 packages
1 stars 1 forks source link

Update to WebKitGTK 5.0? #1

Open taozuhong opened 2 years ago

taozuhong commented 2 years ago
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>

_realname=webkitgtk
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.36.0
pkgrel=1
pkgdesc="GTK Web content engine library (mingw-w64)"
arch=('any')
url="https://webkitgtk.org/"
license=(custom)
depends=("${MINGW_PACKAGE_PREFIX}-atk"
         "${MINGW_PACKAGE_PREFIX}-enchant"
         "${MINGW_PACKAGE_PREFIX}-faad2"
         "${MINGW_PACKAGE_PREFIX}-geoclue2"
         "${MINGW_PACKAGE_PREFIX}-gettext"
         "${MINGW_PACKAGE_PREFIX}-gnome-common"
         "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
         "${MINGW_PACKAGE_PREFIX}-gtk3"
         "${MINGW_PACKAGE_PREFIX}-hyphen"
         "${MINGW_PACKAGE_PREFIX}-libedit"
         "${MINGW_PACKAGE_PREFIX}-libffi"
         "${MINGW_PACKAGE_PREFIX}-libgcrypt"
         "${MINGW_PACKAGE_PREFIX}-libnotify"
         "${MINGW_PACKAGE_PREFIX}-libpulse"
         "${MINGW_PACKAGE_PREFIX}-librsvg"
         "${MINGW_PACKAGE_PREFIX}-libsecret"
         "${MINGW_PACKAGE_PREFIX}-libsoup"
         "${MINGW_PACKAGE_PREFIX}-libsrtp"
         "${MINGW_PACKAGE_PREFIX}-libtheora"
         "${MINGW_PACKAGE_PREFIX}-libvorbis"
         "${MINGW_PACKAGE_PREFIX}-libvpx"
         "${MINGW_PACKAGE_PREFIX}-libxcomposite"
         "${MINGW_PACKAGE_PREFIX}-libxt"
         "${MINGW_PACKAGE_PREFIX}-libxtst"
         "${MINGW_PACKAGE_PREFIX}-mesa"
         "${MINGW_PACKAGE_PREFIX}-mesa-libgl"
         "${MINGW_PACKAGE_PREFIX}-mpg123"
         "${MINGW_PACKAGE_PREFIX}-opus"
         "${MINGW_PACKAGE_PREFIX}-pango"
         "${MINGW_PACKAGE_PREFIX}-ruby"
         "${MINGW_PACKAGE_PREFIX}-upower"
         "${MINGW_PACKAGE_PREFIX}-util-linux"
         "${MINGW_PACKAGE_PREFIX}-wayland"
         "${MINGW_PACKAGE_PREFIX}-xorg-font-utils")
source=(https://webkitgtk.org/releases/webkitgtk-${pkgver}.tar.xz{,.asc})
sha256sums=('b877cca1f105235f5dd57c7ac2b2c2be3c6b691ff444f93925c7254cf156c64d'
            'SKIP')
validpgpkeys=('D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3')

prepare() {
  cd "${srcdir}/webkitgtk-${pkgver}"
}

build() {
  cd "$srcdir"/webkitgtk-${pkgver}
  [[ -d "${srcdir}"/build-${CARCH} ]] && rm -rf "${srcdir}"/build-${CARCH}
  mkdir -p "${srcdir}"/build-${CARCH} && cd "${srcdir}"/build-${CARCH}

  MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
    ${MINGW_PREFIX}/bin/cmake \
      -G Ninja \
      -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
      -DPORT=GTK \
      -DCMAKE_BUILD_TYPE=Release \
      -DENABLE_GTKDOC=OFF \
      -DENABLE_DRAG_SUPPORT=OFF \
      -DENABLE_GLES2=OFF \
      -DENABLE_ICONDATABASE=OFF \
      -DENABLE_INTROSPECTION=OFF \
      -DENABLE_JIT=OFF \
      -DENABLE_OPENGL=OFF \
      -DENABLE_SAMPLING_PROFILER=OFF \
      -DENABLE_SPELLCHECK=OFF \
      -DENABLE_TOUCH_EVENTS=OFF \
      -DENABLE_VIDEO=OFF \
      -DENABLE_WEBDRIVER=OFF \
      -DENABLE_WEB_CRYPTO=OFF \
      -DUSE_LIBHYPHEN=OFF \
      -DUSE_LIBNOTIFY=OFF \
      -DUSE_LIBSECRET=OFF \
      -DENABLE_WEB_AUDIO=OFF \
      -DUSE_WOFF2=OFF \
      -DUSE_SYSTEM_MALLOC=ON \
      -DENABLE_GEOLOCATION=OFF \
      -DLIBEXEC_INSTALL_DIR=/usr/lib \
      -DLIB_INSTALL_DIR=/usr/lib \
      -DPYTHON_EXECUTABLE=${MINGW_PREFIX}/bin/python2 \
      ../webkitgtk-$pkgver

  ninja
}

package() {
  cd "${srcdir}"/build-${CARCH}

  DESTDIR="$pkgdir" ninja -C build install
}
lazka commented 2 years ago

Has anything changed regarding Windows support?