Zrythm installer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
2.1 KiB

# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
_realname=meson
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.55.0
pkgrel=1
pkgdesc="High-productivity build system (mingw-w64)"
arch=('any')
url="https://mesonbuild.com/"
license=("Apache 2")
options=('strip' 'staticlibs')
depends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
"${MINGW_PACKAGE_PREFIX}-ninja")
source=("https://github.com/mesonbuild/${_realname}/releases/download/${pkgver}/${_realname}-${pkgver}.tar.gz"
'color-term.patch'
'0002-Default-to-sys.prefix-as-the-default-prefix.patch'
'0003-Strip-the-prefix-from-all-paths-when-installing-with.patch'
'install-man.patch')
sha256sums=('0a1ae2bfe2ae14ac47593537f93290fb79e9b775c55b4c53c282bc3ca3745b35'
'5805aed0a117536eb16dd8eef978c6be57c2471b655ede63e25517c28b4f4cf0'
'eb85e166347da7721af4441fce1ac3cb50aee351f361a9b76e92eabac30dab0e'
'b23d16c0b82ed9cb3b6e859a1654385727e19cd4bd9bf904fd509fabd0a82f45'
'0682a36cb75e545a78b81293303835a16171f25baf949905dc08029436efff84')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
patch -Np1 -i "${srcdir}"/color-term.patch
patch -Np1 -i "${srcdir}"/0002-Default-to-sys.prefix-as-the-default-prefix.patch
patch -Np1 -i "${srcdir}"/0003-Strip-the-prefix-from-all-paths-when-installing-with.patch
patch -Np1 -i "${srcdir}"/install-man.patch
}
build() {
[[ -d "${srcdir}"/build-${CARCH} ]] && rm -rf "${srcdir}"/build-${CARCH}
cp -rf "${srcdir}"/${_realname}-${pkgver}/. "${srcdir}"/build-${CARCH} && cd "${srcdir}"/build-${CARCH}
${MINGW_PREFIX}/bin/python setup.py build
}
package() {
cd "${srcdir}"/build-${CARCH}
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python setup.py \
install --prefix=${MINGW_PREFIX} --root="${pkgdir}"
PREFIX_WIN=$(cygpath -m ${MINGW_PREFIX})
sed -s "s|${PREFIX_WIN}/bin/||g" \
-i "${pkgdir}${MINGW_PREFIX}/bin/meson-script.py"
install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
}