diff --git a/archlinuxcn/purc-git/PKGBUILD b/archlinuxcn/purc-git/PKGBUILD new file mode 100644 index 000000000000..0e808588ba3f --- /dev/null +++ b/archlinuxcn/purc-git/PKGBUILD @@ -0,0 +1,96 @@ +# Maintainer: taotieren + +pkgbase=purc-git +pkgname=purc-git +pkgver=0.9.7.r235.gecebff311 +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 + 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%-git}::git+${url}.git") +sha256sums=('SKIP') +options=('!strip') + +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}" +# ctest --test-dir build --output-on-failure + cd "${srcdir}/${pkgname%-git}/build" + bash run_all_tests.sh +} + +package() { + DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname%-git}/build install +} diff --git a/archlinuxcn/purc-git/lilac.yaml b/archlinuxcn/purc-git/lilac.yaml new file mode 100644 index 000000000000..2aa0d3aff484 --- /dev/null +++ b/archlinuxcn/purc-git/lilac.yaml @@ -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