Skip to content

Commit

Permalink
Add purc-git
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Mar 24, 2023
1 parent 228036e commit 2f496c1
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
82 changes: 82 additions & 0 deletions archlinuxcn/purc-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Maintainer: taotieren <[email protected]>

pkgbase=purc-git
pkgname=purc-git
pkgver=0.9.7.r32.g2e2fb8bec
pkgrel=1
pkgdesc="The prime HVML interpreter for C/C++ Language."
arch=(x86_64
aarch64
mips64
powerpc
powerpc64le)
url="https://github.com/HVML/PurC"
license=('LGPL-3.0')
groups=('hvml-git')
provides=(${pkgbase%-git}
domruler
purc-fetcher)
conflicts=(${pkgbase%-git})
replaces=(domruler
purc-fetcher)
depends=(glib2)
makedepends=(bison
cmake
cython
flex
git
ninja
ccache
curl
gcc
ncurses
libjpeg-turbo
libxml2
libxslt
libsoup
icu
mariadb
python
openssl
sqlite
systemd
pkgconf
wtf
zlib)
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%-git}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
cd "${srcdir}/${pkgname%-git}/"
git describe --long --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
cd "${srcdir}/${pkgname%-git}"

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

ninja -C build
}

check() {
cd "${srcdir}/${pkgname%-git}/build"
# ctest --test-dir build --output-on-failure
bash run_all_tests.sh
}

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

build_prefix: extra-x86_64

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_aur_repo()
update_on:
- source: github
github: HVML/PurC

0 comments on commit 2f496c1

Please sign in to comment.