add fail dir for some terrible upstream

This commit is contained in:
starsareintherose 2021-12-24 00:22:43 +00:00
parent eb439312d0
commit 63a37d9a81
15 changed files with 349 additions and 0 deletions

View file

@ -0,0 +1,47 @@
# Maintainer: Eric Berquist <eric DOT berquist AT gmail DOT com>
_pkgname=avogadrolibs
pkgname=avogadro2libs
pkgver=1.95.1
pkgrel=2
pkgdesc="Avogadro 2: libraries"
url="http://openchemistry.org/projects/avogadro2"
arch=("x86_64")
license=("Kitware")
depends=("libarchive" "glew" "hdf5" "vtk=8" "libmsym" "spglib" "libmmtf" "qt5-webview" "qt5-x11extras" "molequeue" "pybind11" "python-cclib")
# gdal is for proj, which is optional for VTK but required here? same for openmpi
# `msgpack-c` is a workaround for the broken libmmtf PKGBUILD
makedepends=("make" "cmake" "eigen" "gtest" "gdal" "openmpi" "msgpack-c")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("https://github.com/OpenChemistry/avogadrolibs/archive/refs/tags/${pkgver}.zip")
sha256sums=('5b69fd1216e49fde04816e257fb60819c47bc711317827f2759a26295309ed5a')
build() {
mkdir -p "${srcdir}"/build
cd "${srcdir}"/build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_TESTING=ON \
-DUSE_HDF5=ON \
-DUSE_VTK=ON \
-DUSE_MMTF=ON \
-DUSE_PYTHON=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python \
"${srcdir}/${_pkgname}-${pkgver}"
make
}
check() {
cd "${srcdir}"/build
make test
}
package() {
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
install -D -m 644 "${srcdir}/${pkgname}"/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View file

@ -0,0 +1,10 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
def post_build():
git_add_files('PKGBUILD')
git_commit()

View file

@ -0,0 +1,10 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- source: github
github: OpenChemistry/avogadrolibs
use_max_tag: true
repo_depends:
- python-cclib

8
fail/python-cclib/.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
# makepkg files
pkg/
src/
*.xz
# source files
*.gz
cclib/

View file

@ -0,0 +1,24 @@
# Maintainer: Eric Berquist <eric dot berquist at gmail dot com>
_name="cclib"
pkgname="python-${_name}"
pkgver=1.6.2
pkgrel=2
pkgdesc="A library for parsing and interpreting the results of computational chemistry packages."
arch=("any")
url="http://cclib.github.io"
license=("BSD-3-Clause")
makedepends=("python-setuptools")
depends=("python-numpy" "python-packaging" "python-periodictable")
optdepends=('python-openbabel: for generating `OBMol`s of results'
'python-biopython: for generating `BioPython.Atom`s of parsed results'
'python-pandas: for generating DataFrames of parsed results'
'python-scipy: for calculating properties of nuclear configurations')
source=("https://github.com/${_name}/${_name}/archive/v${pkgver}.tar.gz")
sha256sums=('ece7b34a487f7483763ef997fa527b8a8c3e1963796df0a9dbf3bab85a686338')
package() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}

View file

@ -0,0 +1,10 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
def post_build():
git_add_files('PKGBUILD')
git_commit()

View file

@ -0,0 +1,11 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- source: github
github: cclib/cclib
use_latest_release: true
prefix: cclib-v
repo_depends:
- python-periodictable

View file

@ -0,0 +1,18 @@
# Maintainer: Ross Whitfield <whitfieldre@ornl.gov>
pkgname='python-periodictable'
_pkgname='periodictable'
pkgver=1.6.0
pkgrel=1
pkgdesc="Extensible periodic table of the elements"
url="http://periodictable.readthedocs.org"
arch=("any")
license=('public domain')
makedepends=('python-setuptools')
source=("https://github.com/pkienzle/periodictable/archive/v$pkgver.tar.gz")
md5sums=('7fe922ea0ed6b1c568ce3b1aa3d731ed')
package() {
depends=('python-numpy' 'python-pyparsing')
cd "$srcdir/${_pkgname}-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1
}

View file

@ -0,0 +1,10 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
run_cmd(['updpkgsums'])
def post_build():
git_add_files('PKGBUILD')
git_commit()

View file

@ -0,0 +1,9 @@
build_prefix: extra-x86_64
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
update_on:
- source: github
github: pkienzle/periodictable
use_max_tag: true
prefix: 'v'

6
fail/vtk8/.shellcheckrc Normal file
View file

@ -0,0 +1,6 @@
# allow unsafe `cd `
disable=SC2164
# allow unused variable (pkgname,pkgver etc.)
disable=SC2034
# allow uninitialized variable (srcdir,pkgdir)
disable=SC2154

150
fail/vtk8/PKGBUILD Normal file
View file

@ -0,0 +1,150 @@
#!/bin/hint/bash
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
# og.Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
# og.Maintainer: Bruno Pagani <archange at archlinux dot org>
# Contributor: Ray Rashif <schiv at archlinux dot org>
# Contributor: Andrzej Giniewicz <gginiu at gmail dot com>
# Contributor: Thomas Dziedzic <gostrc at gmail>
pkgname=vtk8
pkgver=8.2.0
pkgrel=21
provides=(vtk=$pkgver)
conflicts=(vtk)
pkgdesc="A software system for 3D computer graphics, image processing, and visualization"
arch=(x86_64)
url="https://www.vtk.org/"
license=(BSD)
depends=(gcc-libs double-conversion)
makedepends=(cmake boost doxygen ffmpeg gdal gnuplot
java-environment openmpi python-matplotlib qt5-base
qt5-tools qt5-webkit qt5-x11extras tk unixodbc wget
double-conversion eigen expat freetype2 glew hdf5
libjpeg jsoncpp libxml2 lz4 xz python-mpi4py netcdf
libogg pdal libpng libtheora libtiff zlib
sqlite)
optdepends=('gnuplot: plotting tools'
'graphviz: drawing tools'
'java-runtime: java bindings'
'python: python bindings'
'python-mpi4py: OpenMPI python support'
'python-matplotlib: for Matplotlib rendering'
'openmpi: OpenMPI support'
'qt5-x11extras'
'qt5-webkit: WebKit support'
'tk: tcl bindings'
ffmpeg
gdal
glew
hdf5
jsoncpp
lz4
netcdf
pdal
sqlite
unixodbc)
source=("${url}/files/release/${pkgver%.*}/VTK-${pkgver}.tar.gz"
"${url}/files/release/${pkgver%.*}/VTKData-${pkgver}.tar.gz"
"${url}/files/release/${pkgver%.*}/VTKLargeData-${pkgver}.tar.gz"
vtk-python-3.8.patch::"https://gitlab.kitware.com/vtk/vtk/merge_requests/5883.patch"
vtk-gcc10.patch::"https://gitlab.kitware.com/vtk/vtk/-/commit/a9079bdc.patch"
vtk-qt5.15.patch::"https://gitlab.kitware.com/vtk/vtk/-/commit/797f2869.patch"
vtk-freetype-2.10.3.patch)
options=(staticlibs)
sha512sums=('521bd4dabedbc24b0e80a314a34ecd7554b04af28a7973245e3a9cf99a09b995d1b8ac42305c8e53369f226a0a6da3cdb29105ba2c90b46492736ef717760286'
'517d0f6dfdb0c61f59df933f06d3a28c8a48ea684aaff311456213fe493e2a20128886144325fc4edfa376b2d375a2dae6c60ad6e3d5d2f4a7b0ac1d8545c87b'
'8a7ea3d5870b1e4ccb31c77b4c270d00208349da1b2938e957210db3ec1449b678c66edc2faee1d4514aca6d725f642abc91e10ab0c151f6743cad1c53485588'
'05a367dbb21c95f6e03e30c1c520357f60c54074d341b592de8161280c9b90e9e70c19f6b474921cc2f4d2ec17d08a2e76d7dc94c8cef111c72a241684a57b34'
'b62127f078686f24501bc3ba2954bdcec846e7d7d1bdaf5f1b9d47ff86881035b81d6e065472228d46521a6ecafbc113adf3a8b8a97ab01a70fe88f47a971d3d'
'ce4c8822ca4a18f0aa94991ea4df27b340e30ca38d8931cb2929c2226e8cb3a34b15c4ebe4fcb2fa5f940ab132ffe925fdef0236429face93a46d633f272c329'
'01df3947425b510f9c64e72ab2020b02f28141421ad29be94bf118cd7b56cc22702ae329db05bc336284d3edcf3b71d254de10a2784296c691447ee356c76683')
prepare() {
cd VTK-${pkgver}
# Fix build with python 3.8
patch -p1 -i ../vtk-python-3.8.patch
# Fix build with GCC 10
patch -d ThirdParty/exodusII/vtkexodusII -p1 -i "$srcdir"/vtk-gcc10.patch
sed -e 's|REGEX MATCH \"\[3-9\]|REGEX MATCH \"[1-9][0-9]|' -i CMake/VTKGenerateExportHeader.cmake
# Fix build with Qt 5.15
patch -p1 -i ../vtk-qt5.15.patch
# Fix build with Java 12
sed -i 's/VTK_JAVA_SOURCE_VERSION "1.6"/VTK_JAVA_SOURCE_VERSION "1.7"/
s/VTK_JAVA_TARGET_VERSION "1.6"/VTK_JAVA_TARGET_VERSION "1.7"/' Wrapping/Java/CMakeLists.txt
# Fix build with FreeType 2.10.3
patch -p1 -i ../vtk-freetype-2.10.3.patch
# Fix build with HDF5 1.12.1
sed -i 's/typedef int hid_t;/typedef int64_t hid_t;/' ThirdParty/xdmf3/vtkxdmf3/core/XdmfHDF5Controller.hpp
}
build() {
# to help cmake find java
export JAVA_HOME=/usr/lib/jvm/default
# GL2PS blocked by http://www.vtk.org/Bug/view.php?id=16083
# LIBHARU blocked by https://github.com/libharu/libharu/pull/157
# exodusII,kissfft,verdict,VPIC,xdmf2/3,zfp not packaged in Arch
# Note: VTK explicitly disables system GLEW dependency, it uses embedded sources with modifications
local VTK_USE_SYSTEM_LIB=""
# Common with ParaView
for lib in DOUBLECONVERSION EIGEN EXPAT FREETYPE GLEW HDF5 JPEG JSONCPP LIBXML2 LZ4 LZMA MPI4PY NETCDF OGG PNG THEORA TIFF ZLIB; do
VTK_USE_SYSTEM_LIB+="-DVTK_USE_SYSTEM_${lib}=ON "
done
for lib in SQLITE; do
VTK_USE_SYSTEM_LIB+="-DVTK_USE_SYSTEM_${lib}=ON "
done
local _tkver=$(echo 'puts $tcl_version' | tclsh)
cmake -B build -S VTK-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_DOCUMENTATION=OFF \
-DDOXYGEN_KEEP_TEMP=ON \
-DDOCUMENTATION_HTML_HELP=OFF \
-DDOCUMENTATION_HTML_TARZ=OFF \
-DBUILD_EXAMPLES=ON \
-DXDMF_STATIC_AND_SHARED=OFF \
-DVTK_USE_FFMPEG_ENCODER=ON \
-DVTK_BUILD_ALL_MODULES=ON \
-DModule_vtkIOPDAL=ON \
-DVTK_USE_LARGE_DATA=ON \
-DVTK_QT_VERSION="5" \
-DVTK_WRAP_JAVA=ON \
-DVTK_WRAP_PYTHON=ON \
-DVTK_WRAP_TCL=ON \
-DCMAKE_CXX_FLAGS="-D__STDC_CONSTANT_MACROS" \
-DVTK_PYTHON_VERSION="3" \
-DVTK_CUSTOM_LIBRARY_SUFFIX="" \
-DVTK_INSTALL_INCLUDE_DIR=include/vtk \
-DVTK_INSTALL_TCL_DIR=/usr/lib/tcl"${_tkver}"/vtk/ \
"${VTK_USE_SYSTEM_LIB}" \
-Wno-dev
make -C build
}
package() {
make -C build DESTDIR="${pkgdir}" install
# Move the vtk.jar to the arch-specific location
install -dv "${pkgdir}"/usr/share/java/vtk
mv -v "${pkgdir}"/usr/lib/vtk.jar "${pkgdir}"/usr/share/java/vtk
rm -rf "${pkgdir}"/usr/lib/vtk-${pkgver%.*}/java
# Install license
install -Dm644 VTK-${pkgver}/Copyright.txt -t "${pkgdir}"/usr/share/licenses/${pkgname%8}/
# Fix path of QtDesigner plugin
install -dv "${pkgdir}"/usr/lib/qt
mv "${pkgdir}"/usr/plugins "${pkgdir}"/usr/lib/qt/plugins
}

10
fail/vtk8/lilac.py Normal file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env python3
from lilaclib import *
def pre_build():
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
def post_build():
git_pkgbuild_commit()

8
fail/vtk8/lilac.yaml Normal file
View file

@ -0,0 +1,8 @@
maintainers:
- github: starsareintherose
email: starsareintherose@outlook.com
build_prefix: extra-x86_64
update_on:
- source: regex
url: "https://vtk.org/download/"
regex: 'Previous Release \((\d+.\d+.\d+)\)'

View file

@ -0,0 +1,18 @@
diff --git a/ThirdParty/freetype/vtk_freetype.h.in b/ThirdParty/freetype/vtk_freetype.h.in
index c3f6f4f3..fd525e55 100644
--- a/ThirdParty/freetype/vtk_freetype.h.in
+++ b/ThirdParty/freetype/vtk_freetype.h.in
@@ -20,6 +20,13 @@
#ifdef VTK_USE_SYSTEM_FREETYPE
# include <ft2build.h>
+#ifndef FT_CALLBACK_DEF
+#ifdef __cplusplus
+#define FT_CALLBACK_DEF( x ) extern "C" x
+#else
+#define FT_CALLBACK_DEF( x ) static x
+#endif
+#endif /* FT_CALLBACK_DEF */
#else
# include <vtkfreetype/include/ft2build.h>
#endif