Skip to content

Commit

Permalink
libraqm: update to 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 committed Sep 29, 2024
1 parent 2bbca16 commit 7bf12dc
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions mingw-w64-libraqm/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,24 @@
_realname=libraqm
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=0.10.1
pkgver=0.10.2
pkgrel=1
pkgdesc="A library that encapsulates the logic for complex text layout (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
url="https://github.com/HOST-Oman/libraqm"
depends=("${MINGW_PACKAGE_PREFIX}-freetype"
"${MINGW_PACKAGE_PREFIX}-glib2"
"${MINGW_PACKAGE_PREFIX}-harfbuzz"
"${MINGW_PACKAGE_PREFIX}-fribidi")
makedepends=("${MINGW_PACKAGE_PREFIX}-gtk-doc"
"${MINGW_PACKAGE_PREFIX}-meson"
"${MINGW_PACKAGE_PREFIX}-pkgconf"
"${MINGW_PACKAGE_PREFIX}-cc")
license=('MIT')
license=('spdx:MIT')
source=("${_realname}-$pkgver".tar.gz::"https://github.com/HOST-Oman/libraqm/archive/v${pkgver}.tar.gz")
sha256sums=('ff8f0604dc38671b57fc9ca5c15f3613e063d2f988ff14aa4de60981cb714134')

prepare() {
cd ${srcdir}/${_realname}-${pkgver}

}
sha256sums=('db68fd9f034fc40ece103e511ffdf941d69f5e935c48ded8a31590468e42ba72')

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

declare -a extra_config
if check_option "debug" "n"; then
extra_config+=("--buildtype=release")
Expand All @@ -38,26 +29,24 @@ build() {
fi

MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/meson.exe \
meson setup \
--prefix="${MINGW_PREFIX}" \
"${extra_config[@]}" \
--wrap-mode=nodownload \
--default-library=both \
--auto-features=enabled \
-Ddocs=true \
"../${_realname}-${pkgver}"
"build-${MSYSTEM}" \
"${_realname}-${pkgver}"

${MINGW_PREFIX}/bin/meson.exe compile
meson compile -C "build-${MSYSTEM}"
}

check() {
cd "${srcdir}/build-${MSYSTEM}"
${MINGW_PREFIX}/bin/meson.exe test || true
meson test -C "build-${MSYSTEM}"
}

package() {
cd "${srcdir}/build-${MSYSTEM}"
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/meson.exe install

meson install -C "build-${MSYSTEM}" --destdir "${pkgdir}"
install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
}

0 comments on commit 7bf12dc

Please sign in to comment.