Skip to content

Commit

Permalink
Add purc
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Apr 2, 2023
1 parent 228036e commit 599ea3b
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
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 <admin@taotieren.com>

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
}

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

0 comments on commit 599ea3b

Please sign in to comment.