From 7c2ccef6232affc181d3286889980433f166e80a Mon Sep 17 00:00:00 2001 From: Alexey Pavlov Date: Mon, 29 Jan 2018 08:18:11 +0300 Subject: [PATCH] kicad-git: Fix dependencies and sources --- mingw-w64-kicad-git/PKGBUILD | 76 +++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 2 deletions(-) diff --git a/mingw-w64-kicad-git/PKGBUILD b/mingw-w64-kicad-git/PKGBUILD index ff6081910a..e362250769 100644 --- a/mingw-w64-kicad-git/PKGBUILD +++ b/mingw-w64-kicad-git/PKGBUILD @@ -3,7 +3,7 @@ _realname=kicad pkgbase=mingw-w64-${_realname}-git pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-git" -pkgver=r7314.d1e4399 +pkgver=r9301.e499d337d pkgrel=1 pkgdesc="Software for the creation of electronic schematic diagrams and printed circuit board artwork (mingw-w64)" arch=('any') @@ -14,6 +14,7 @@ conflicts=("${MINGW_PACKAGE_PREFIX}-${_realname}") depends=("${MINGW_PACKAGE_PREFIX}-boost" "${MINGW_PACKAGE_PREFIX}-cairo" "${MINGW_PACKAGE_PREFIX}-glew" + "${MINGW_PACKAGE_PREFIX}-ngspice" "${MINGW_PACKAGE_PREFIX}-openssl" "${MINGW_PACKAGE_PREFIX}-wxPython" "${MINGW_PACKAGE_PREFIX}-wxWidgets") @@ -26,8 +27,17 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cmake" "${MINGW_PACKAGE_PREFIX}-swig" "git") source=("${_realname}"::"git+https://github.com/KiCad/kicad-source-mirror.git" - "${_realname}-libs"::"git+https://github.com/KiCad/kicad-library.git") + #"${_realname}-doc"::"git+https://github.com/KiCad/kicad-doc.git" + "${_realname}-i18n"::"git+https://github.com/KiCad/kicad-i18n.git" + "${_realname}-libs"::"git+https://github.com/KiCad/kicad-library.git" + "${_realname}-footprints"::"git+https://github.com/KiCad/kicad-footprints.git" + "${_realname}-symbols"::"git+https://github.com/KiCad/kicad-symbols.git" + "${_realname}-templates"::"git+https://github.com/KiCad/kicad-templates.git") sha256sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' 'SKIP') pkgver() { @@ -35,6 +45,10 @@ pkgver() { printf "r%s.%s" "$(git rev-list --count --first-parent HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + cp -f ${srcdir}/${_realname}/template/kicad.pro ${srcdir}/kicad-templates/ +} + build() { cd "${srcdir}" @@ -67,7 +81,16 @@ build() { make cd "${srcdir}" + # Configure the translationn installation build. + [[ -d build-i18n ]] && rm -r build-i18n + mkdir build-i18n && cd build-i18n + MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \ + ${MINGW_PREFIX}/bin/cmake.exe \ + -G "MSYS Makefiles" \ + -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \ + ../${_realname}-i18n + cd "${srcdir}" # Configure the library installation build. [[ -d build-libs ]] && rm -r build-libs mkdir build-libs && cd build-libs @@ -77,6 +100,35 @@ build() { -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \ ../${_realname}-libs + cd "${srcdir}" + # Configure the footprints installation build. + [[ -d build-footprints ]] && rm -r build-footprints + mkdir build-footprints && cd build-footprints + MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \ + ${MINGW_PREFIX}/bin/cmake.exe \ + -G "MSYS Makefiles" \ + -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \ + ../${_realname}-footprints + + cd "${srcdir}" + # Configure the templates installation build. + [[ -d build-templates ]] && rm -r build-templates + mkdir build-templates && cd build-templates + MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \ + ${MINGW_PREFIX}/bin/cmake.exe \ + -G "MSYS Makefiles" \ + -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \ + ../${_realname}-templates + + cd "${srcdir}" + # Configure the symbols installation build. + [[ -d build-symbols ]] && rm -r build-symbols + mkdir build-symbols && cd build-symbols + MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \ + ${MINGW_PREFIX}/bin/cmake.exe \ + -G "MSYS Makefiles" \ + -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \ + ../${_realname}-symbols } package() { @@ -84,7 +136,27 @@ package() { cd "${srcdir}/build-${MINGW_CHOST}" make DESTDIR=${pkgdir} install + # Install KiCad i18n. + cd "${srcdir}/build-i18n" + make DESTDIR=${pkgdir} install + # Install KiCad libraries. cd "${srcdir}/build-libs" make DESTDIR=${pkgdir} install + + # Install KiCad footprints. + cd "${srcdir}/build-footprints" + make DESTDIR=${pkgdir} install + + # Install KiCad symbols. + cd "${srcdir}/build-symbols" + make DESTDIR=${pkgdir} install + + # Install KiCad templates. + cd "${srcdir}/build-templates" + make DESTDIR=${pkgdir} install + + # Install the pretties + #mkdir -p "${pkgdir}${MINGW_PREFIX}/share/kicad/modules" + #cp -rd "${srcdir}/kicad-footprints"/* "${pkgdir}${MINGW_PREFIX}/share/kicad/modules" }