Skip to content

Commit

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

pkgbase=purc
pkgname=purc
pkgver=0.9.0
pkgrel=1
pkgdesc="The prime HVML interpreter for C Language."
arch=('any')
url="https://github.com/HVML/PurC"
license=('LGPL-3.0')
groups=('hvml')
provides=(${pkgname} 'PurC')
conflicts=(${pkgname})
replaces=()
depends=(glib2 bison flex)
makedepends=(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=${pkgname}.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/ver-${pkgver}.tar.gz")
sha256sums=('4fc77860b060a8d1ac54eac09e4c92e95e527e85308a2ff736c892c9d5e5b72a')

build() {
cd "${srcdir}/PurC-ver-${pkgver}/"

# Ninja build
cmake -DCMAKE_BUILD_TYPE=Release \
-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
}

package() {
# ninja install
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 451aeaf

Please sign in to comment.