Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions mingw-w64-babl/001-file-open-unicode.patch

This file was deleted.

31 changes: 8 additions & 23 deletions mingw-w64-babl/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_realname=babl
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.1.116
pkgver=0.1.118
pkgrel=1
pkgdesc="Dynamic Pixel Format Translation Library (mingw-w64)"
arch=('any')
Expand All @@ -16,29 +16,12 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-gobject-introspection"
"${MINGW_PACKAGE_PREFIX}-vala"
"${MINGW_PACKAGE_PREFIX}-pkgconf")
"${MINGW_PACKAGE_PREFIX}-pkgconf"
"git")
depends=("${MINGW_PACKAGE_PREFIX}-cc-libs"
"${MINGW_PACKAGE_PREFIX}-lcms2")
source=("https://download.gimp.org/pub/babl/${pkgver%.*}/${_realname}-${pkgver}.tar.xz"
"001-file-open-unicode.patch")
sha256sums=('50fae069867c7ade1259888ff1e3db85fec86d708252e5385b5a4f39a78ec483'
'98cf43394eb1d1a8140438fbb745ed31f3768c07086afab297e4be9d609d07c5')

apply_patch_with_msg() {
for _patch in "$@"
do
msg2 "Applying ${_patch}"
patch -bp1 -i "${srcdir}/${_patch}"
done
}

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

#FIXME: remove this patch on babl 0.1.118
apply_patch_with_msg \
001-file-open-unicode.patch
}
source=("https://download.gimp.org/pub/babl/${pkgver%.*}/${_realname}-${pkgver}.tar.xz")
sha256sums=('c3febe923e225c2a58f952689a89bb1db956788bfecb18a7eff6fc94da9e2469')

build() {
mkdir -p "build-${MSYSTEM}" && cd "build-${MSYSTEM}"
Expand All @@ -50,10 +33,12 @@ build() {
MSYS2_ARG_CONV_EXCL="--prefix=" \
meson setup \
--prefix="${MINGW_PREFIX}" \
--auto-features=enabled \
--wrap-mode=nodownload \
--buildtype=plain \
-Dwith-lcms=true \
-Denable-gir=true \
-Dwith-docs=false \
-Dgi-docgen=disabled \
${_arch_opt} \
"../${_realname}-${pkgver}"

Expand Down