Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add purc #3000

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions archlinuxcn/purc/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Maintainer: taotieren <[email protected]>

pkgbase=purc
pkgname=purc
pkgver=0.9.7
pkgrel=6
pkgdesc="The prime HVML interpreter for C Language."
arch=(x86_64
aarch64
mips64
powerpc
powerpc64le)
url="https://github.com/HVML/PurC"
license=('LGPL-3.0')
groups=('hvml')
provides=(${pkgname}
domruler
purc-fetcher)
conflicts=(${pkgname})
replaces=(domruler
purc-fetcher)
depends=(glib2
glibc
python)
makedepends=(bison
cmake
cython
flex
git
ninja
ccache
curl
gcc
gperf
lua-lgi
ncurses
libgcrypt
libjpeg-turbo
libnotify
libmanette
libtasn1
libsecret
libseccomp
libpsl
libxml2
libxslt
libsoup
icu
mariadb
openssl
sqlite
systemd
pkgconf
zlib)
checkdepends=(check
gtest
valgrind)
optdepends=('python-numpy: Scientific tools for Python'
'webkit2gtk-hvml: Web content engine for GTK (HVML)'
'webkit2gtk: Web content engine for GTK'
'xguipro: xGUI (the X Graphics User Interface) Pro is a modern, cross-platform, and advanced HVML renderer which is based on tailored WebKit.')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/ver-${pkgver}.tar.gz")
sha256sums=('8dff65b5f2bce1e4743c062b29e6860f8e7d37dfa251437473cb5917fc1c37ed')
options=('!strip')

build() {
cd "${srcdir}/PurC-ver-${pkgver}/"

# see:https://wiki.archlinux.org/title/CMake_package_guidelines
# cmake -DCMAKE_BUILD_TYPE=Release \
cmake -DCMAKE_BUILD_TYPE=None \
-DPORT=Linux \
-DENABLE_API_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-B build \
-G Ninja

ninja -C build
}
Comment on lines +66 to +81
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CMake build type is: None
CMake Warning (dev) at Source/cmake/PurCCommon.cmake:17 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:139 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.11.7", minimum required is "2.7.0") 
-- Found Python3: /usr/bin/python3.11 (found version "3.11.7") found components: Interpreter 
-- Enabling ccache: Setting ccache prefix for compiler.
-- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing
-- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing - Success
-- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions
-- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wcast-align
-- Performing Test C_COMPILER_SUPPORTS_-Wcast-align - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wformat-security
-- Performing Test C_COMPILER_SUPPORTS_-Wformat-security - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute
-- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith
-- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wundef
-- Performing Test C_COMPILER_SUPPORTS_-Wundef - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings
-- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align
-- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security
-- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute
-- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith
-- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wundef
-- Performing Test CXX_COMPILER_SUPPORTS_-Wundef - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings
-- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings - Success
-- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments
-- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-zero-length-bounds
-- Performing Test C_COMPILER_SUPPORTS_-Wno-zero-length-bounds - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized
-- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality
-- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi
-- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments
-- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-zero-length-bounds
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-zero-length-bounds - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-expansion-to-defined
-- Performing Test C_COMPILER_SUPPORTS_-Wno-expansion-to-defined - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-expansion-to-defined
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-expansion-to-defined - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wall
-- Performing Test C_COMPILER_SUPPORTS_-Wall - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wextra
-- Performing Test C_COMPILER_SUPPORTS_-Wextra - Success
-- Performing Test C_COMPILER_SUPPORTS_-fmax-errors=10
-- Performing Test C_COMPILER_SUPPORTS_-fmax-errors=10 - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wall
-- Performing Test CXX_COMPILER_SUPPORTS_-Wall - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wextra
-- Performing Test CXX_COMPILER_SUPPORTS_-Wextra - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fmax-errors=10
-- Performing Test CXX_COMPILER_SUPPORTS_-fmax-errors=10 - Success
-- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics
-- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics - Failed
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics
-- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always
-- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success
-- Performing Test ATOMIC_INT64_IS_BUILTIN
-- Performing Test ATOMIC_INT64_IS_BUILTIN - Success
-- Looking for features.h
-- Looking for features.h - not found
-- Looking for stdatomic.h
-- Looking for stdatomic.h - not found
-- Looking for errno.h
-- Looking for errno.h - not found
-- Looking for string.h
-- Looking for string.h - not found
-- Looking for memory.h
-- Looking for memory.h - not found
-- Looking for utime.h
-- Looking for utime.h - not found
-- Looking for langinfo.h
-- Looking for langinfo.h - not found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - not found
-- Looking for sys/select.h
-- Looking for sys/select.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - not found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - not found
-- Looking for pthread_np.h
-- Looking for pthread_np.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - not found
-- Looking for sys/timeb.h
-- Looking for sys/timeb.h - not found
-- Looking for sys/sysmacros.h
-- Looking for sys/sysmacros.h - not found
-- Looking for linux/memfd.h
-- Looking for linux/memfd.h - not found
-- Looking for linux/fs.h
-- Looking for linux/fs.h - not found
-- Looking for syslog.h
-- Looking for syslog.h - not found
-- Looking for fcntl.h
-- Looking for fcntl.h - not found
-- Looking for stropts.h
-- Looking for stropts.h - not found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - not found
-- Looking for IsDebuggerPresent
-- Looking for IsDebuggerPresent - not found
-- Looking for localtime_r
-- Looking for localtime_r - not found
-- Looking for malloc_trim
-- Looking for malloc_trim - not found
-- Looking for strnstr
-- Looking for strnstr - not found
-- Looking for timegm
-- Looking for timegm - not found
-- Looking for vasprintf
-- Looking for vasprintf - not found
-- Looking for vsyslog
-- Looking for vsyslog - not found
-- Looking for alloca
-- Looking for alloca - not found
-- Looking for realpath
-- Looking for realpath - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - not found
-- Looking for strncasecmp
-- Looking for strncasecmp - not found
-- Looking for strverscmp
-- Looking for strverscmp - not found
-- Looking for utimensat
-- Looking for utimensat - not found
-- Looking for random_r
-- Looking for random_r - not found
-- Looking for get_process_stats
-- Looking for get_process_stats - not found
-- Looking for posix_fallocate
-- Looking for posix_fallocate - not found
-- Looking for regexec
-- Looking for regexec - not found
-- Looking for pthread_main_np
-- Looking for pthread_main_np - not found
-- Looking for SIGTRAP
-- Looking for SIGTRAP - not found
-- Performing Test HAVE_STAT_BIRTHTIME_value
-- Performing Test HAVE_STAT_BIRTHTIME_value - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_BLOCKS_value
-- Performing Test HAVE_STRUCT_STAT_ST_BLOCKS_value - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE_value
-- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE_value - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_RDEV_value
-- Performing Test HAVE_STRUCT_STAT_ST_RDEV_value - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_value
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_value - Failed
-- Performing Test HAVE_TM_GMTOFF_value
-- Performing Test HAVE_TM_GMTOFF_value - Failed
-- Performing Test HAVE_TM_ZONE_value
-- Performing Test HAVE_TM_ZONE_value - Failed
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of __int128_t
-- Check size of __int128_t - failed
-- Check size of uintmax_t
-- Check size of uintmax_t - failed
-- Found ZLIB: /usr/lib/libz.so (found suitable version "1.3.1", minimum required is "1.2.0")  
-- Found GLIB: /usr/include/glib-2.0;/usr/lib/glib-2.0/include (found suitable version "2.78.4", minimum required is "2.44.0") 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindThreads.cmake:226 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  Source/cmake/PurCFindPackage.cmake:100 (_find_package)
  Source/cmake/OptionsLinux.cmake:19 (find_package)
  Source/cmake/PurCCommon.cmake:48 (include)
  CMakeLists.txt:139 (include)


-- Configuring incomplete, errors occurred!


check() {
cd "${srcdir}/PurC-ver-${pkgver}/build"
# ctest --test-dir build --output-on-failure
bash run_all_tests.sh
}

package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/PurC-ver-${pkgver}/build install
}
17 changes: 17 additions & 0 deletions archlinuxcn/purc/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
maintainers:
- github: taotieren

build_prefix: extra-x86_64

pre_build_script: |
update_pkgver_and_pkgrel(_G.newver)

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()

update_on:
- source: github
github: HVML/PurC
use_latest_release: true
prefix: v