Last active
February 25, 2025 15:13
`pdf-svg-conv`' s PKGBUILD for msys2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Zhou Qiankang <wszqkzqk@qq.com> | |
_realname=pdf-svg-conv | |
pkgbase=mingw-w64-${_realname} | |
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" | |
pkgver=0.1.5 | |
pkgrel=1 | |
pkgdesc="A cross-platform tool to process live photos of Google Android" | |
arch=('any') | |
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') | |
url="https://github.com/wszqkzqk/${_realname}" | |
license=('spdx:LGPL-2.1-or-later') | |
depends=( | |
"${MINGW_PACKAGE_PREFIX}-cairo" | |
"${MINGW_PACKAGE_PREFIX}-glib2" | |
"${MINGW_PACKAGE_PREFIX}-librsvg" | |
"${MINGW_PACKAGE_PREFIX}-poppler" | |
) | |
makedepends=( | |
"git" | |
"help2man" | |
"${MINGW_PACKAGE_PREFIX}-cc" | |
"${MINGW_PACKAGE_PREFIX}-meson" | |
"${MINGW_PACKAGE_PREFIX}-vala" | |
) | |
source=("git+https://github.com/wszqkzqk/${_realname}.git#tag=${pkgver}") | |
sha256sums=('4940e596adbf00bbf92214418e544d061cbf58896bab31223e2e6e78d6459281') | |
build() { | |
mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}" | |
declare -a _extra_config | |
if check_option "debug" "n"; then | |
_extra_config+=("--buildtype=release") | |
else | |
_extra_config+=("--buildtype=debug") | |
fi | |
MSYS2_ARG_CONV_EXCL="--prefix=" \ | |
${MINGW_PREFIX}/bin/meson.exe setup \ | |
--prefix="${MINGW_PREFIX}" \ | |
"${_extra_config[@]}" \ | |
--wrap-mode=nodownload \ | |
--default-library=both \ | |
../${_realname} | |
${MINGW_PREFIX}/bin/meson.exe compile | |
} | |
package() { | |
cd "${srcdir}/build-${MSYSTEM}" | |
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/meson.exe install | |
install -Dm644 "${srcdir}/${_realname}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment