Skip to content

Commit

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

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
}
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 c908729

Please sign in to comment.