libinih: update to 57
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
_realname=libinih
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=56
|
||||
pkgrel=2
|
||||
pkgver=57
|
||||
pkgrel=1
|
||||
pkgdesc="A simple .INI file parser written in C (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
@@ -14,16 +14,14 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
|
||||
"${MINGW_PACKAGE_PREFIX}-meson"
|
||||
"${MINGW_PACKAGE_PREFIX}-ninja"
|
||||
"${MINGW_PACKAGE_PREFIX}-pkg-config"
|
||||
"${MINGW_PACKAGE_PREFIX}-pkgconf"
|
||||
"${MINGW_PACKAGE_PREFIX}-python")
|
||||
source=("https://github.com/benhoyt/inih/archive/refs/tags/r${pkgver}.tar.gz")
|
||||
sha256sums=('4f2ba6bd122d30281a8c7a4d5723b7af90b56aa828c0e88256d7fceda03a491a')
|
||||
sha256sums=('f03f98ca35c3adb56b2358573c8d3eda319ccd5287243d691e724b7eafa970b3')
|
||||
|
||||
build() {
|
||||
mkdir -p build-${MSYSTEM}-static && cd build-${MSYSTEM}-static
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
meson setup \
|
||||
${MINGW_PREFIX}/bin/meson.exe setup \
|
||||
--prefix="${MINGW_PREFIX}" \
|
||||
--wrap-mode=nodownload \
|
||||
--auto-features=enabled \
|
||||
@@ -31,15 +29,13 @@ build() {
|
||||
-Ddefault_library=static \
|
||||
-Ddistro_install=true \
|
||||
-Dwith_INIReader=true \
|
||||
../inih-r${pkgver}
|
||||
"build-${MSYSTEM}-static" \
|
||||
"inih-r${pkgver}"
|
||||
|
||||
meson compile
|
||||
|
||||
cd "${srcdir}"
|
||||
mkdir -p build-${MSYSTEM}-shared && cd build-${MSYSTEM}-shared
|
||||
${MINGW_PREFIX}/bin/meson.exe compile -C "build-${MSYSTEM}-static"
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
meson setup \
|
||||
${MINGW_PREFIX}/bin/meson.exe setup \
|
||||
--prefix="${MINGW_PREFIX}" \
|
||||
--wrap-mode=nodownload \
|
||||
--auto-features=enabled \
|
||||
@@ -47,19 +43,15 @@ build() {
|
||||
-Ddefault_library=shared \
|
||||
-Ddistro_install=true \
|
||||
-Dwith_INIReader=true \
|
||||
../inih-r${pkgver}
|
||||
"build-${MSYSTEM}-shared" \
|
||||
"inih-r${pkgver}"
|
||||
|
||||
meson compile
|
||||
${MINGW_PREFIX}/bin/meson.exe compile -C "build-${MSYSTEM}-shared"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/build-${MSYSTEM}-static"
|
||||
|
||||
DESTDIR="${pkgdir}" meson install
|
||||
|
||||
cd "${srcdir}/build-${MSYSTEM}-shared"
|
||||
|
||||
DESTDIR="${pkgdir}" meson install
|
||||
${MINGW_PREFIX}/bin/meson.exe install --destdir "${pkgdir}" -C "build-${MSYSTEM}-static"
|
||||
${MINGW_PREFIX}/bin/meson.exe install --destdir "${pkgdir}" -C "build-${MSYSTEM}-shared"
|
||||
|
||||
install -Dm644 "${srcdir}/inih-r${pkgver}/LICENSE.txt" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user