diff --git a/archlinuxcn/purc-git/PKGBUILD b/archlinuxcn/purc-git/PKGBUILD new file mode 100644 index 000000000000..e0c51fef9a49 --- /dev/null +++ b/archlinuxcn/purc-git/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: taotieren + +pkgbase=purc-git +pkgname=purc-git +pkgver=0.8.2.r295.gb9be96dae +pkgrel=1 +pkgdesc="The prime HVML interpreter for C Language." +arch=('x86_64') +url="https://github.com/HVML/PurC" +license=('LGPL-3.0') +groups=('hvml-git') +provides=(${pkgbase%-git}) +conflicts=(${pkgbase%-git}) +replaces=() +depends=('glib2' 'bison' 'flex') +makedepends=('git' 'cmake' 'ninja' 'ccache' 'gcc' 'python' 'libxml2' 'ruby' 'curl' 'openssl' 'sqlite' 'pkgconf' 'zlib' 'icu') +optdepends=('purc-midnight-commander: A generic HVML renderer in text mode for development and debugging.' + 'webkit2gtk-hvml: Web content engine for GTK (HVML)' + 'xguipro: xGUI (the X Graphics User Interface) Pro is a modern, cross-platform, and advanced HVML renderer which is based on tailored WebKit.') +backup=() +options=('!strip') +install= +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}" + +# Ninja build + cmake -DCMAKE_BUILD_TYPE=Debug \ + -DPORT=Linux \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_LIBEXECDIR=lib \ + -B build \ + -G Ninja + + ninja -C build +} + +package() { +# ninja install + 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