blob: 0a2e9d9efc4aea9ecffbe20cd30b94b96ffbb2a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Maintainer: taotieren <admin@taotieren.com>
pkgbase=purc
pkgname=purc
pkgver=0.9.18
pkgrel=1
pkgdesc="The prime HVML interpreter for C/C++ Language."
arch=(x86_64
aarch64
riscv64
mips64
powerpc
powerpc64le)
url="https://github.com/HVML/PurC"
license=('LGPL-3.0')
groups=(hvml
hybridos2)
provides=(${pkgname}
csseng
domruler
purc-fetcher
libcsseng.so
libpurc-dvobj-PY.so
libpurc-dvobj-FS.so
libpurc-dvobj-MATH.so
libpurc-fetcher.so
libdomruler.so
libpurc.so)
conflicts=(${pkgname})
replaces=(domruler
purc-fetcher)
depends=(glib2
glibc
python)
makedepends=(bison
cmake
# cython
flex
git
ninja
ccache
curl
# gcc
clang
llvm
gperf
lua-lgi
ncurses
libgcrypt
libjpeg-turbo
libnotify
libmanette
libtasn1
libsecret
libseccomp
libpsl
libxml2
libxslt
libsoup3
icu
# mariadb
# mysql
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=('50b76da399dda7f3dfd4e0ebf0ebb5906c73938d47de469a421851d2ff2f9398')
options=('!strip')
build() {
cd "${srcdir}/PurC-ver-${pkgver}/"
# sed -i 's|0 9 13|0 9 14|g' CMakeLists.txt
# see:https://wiki.archlinux.org/title/CMake_package_guidelines
# gcc build
# cmake -DCMAKE_BUILD_TYPE=Release \
# cmake -DCMAKE_BUILD_TYPE=None \
# -DPORT=Linux \
# -DENABLE_CHINESE_NAMES=ON \
# -DCMAKE_INSTALL_PREFIX=/usr \
# -DCMAKE_INSTALL_LIBDIR=lib \
# -DCMAKE_INSTALL_LIBEXECDIR=lib \
# -B build \
# -G Ninja
# clang build
cmake -DCMAKE_BUILD_TYPE=None \
-DPORT=Linux \
-DENABLE_CHINESE_NAMES=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_COMPILER=clang \
-B build \
-G Ninja
ninja -C build
}
package() {
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/PurC-ver-${pkgver}/build install
}
|