Skip to content

Commit c908729

Browse files
committed
Add purc-git
1 parent 228036e commit c908729

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

archlinuxcn/purc-git/PKGBUILD

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Maintainer: taotieren <[email protected]>
2+
3+
pkgbase=purc-git
4+
pkgname=purc-git
5+
pkgver=0.8.2.r295.gb9be96dae
6+
pkgrel=1
7+
pkgdesc="The prime HVML interpreter for C Language."
8+
arch=('x86_64')
9+
url="https://github.com/HVML/PurC"
10+
license=('LGPL-3.0')
11+
groups=('hvml-git')
12+
provides=(${pkgbase%-git})
13+
conflicts=(${pkgbase%-git})
14+
replaces=()
15+
depends=('glib2' 'bison' 'flex')
16+
makedepends=('git' 'cmake' 'ninja' 'ccache' 'gcc' 'python' 'libxml2' 'ruby' 'curl' 'openssl' 'sqlite' 'pkgconf' 'zlib' 'icu')
17+
optdepends=('purc-midnight-commander: A generic HVML renderer in text mode for development and debugging.'
18+
'webkit2gtk-hvml: Web content engine for GTK (HVML)'
19+
'xguipro: xGUI (the X Graphics User Interface) Pro is a modern, cross-platform, and advanced HVML renderer which is based on tailored WebKit.')
20+
backup=()
21+
options=('!strip')
22+
install=
23+
source=("${pkgname%-git}::git+${url}.git")
24+
sha256sums=('SKIP')
25+
26+
pkgver() {
27+
cd "${srcdir}/${pkgname%-git}/"
28+
git describe --long --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
29+
}
30+
31+
build() {
32+
cd "${srcdir}/${pkgname%-git}"
33+
34+
# Ninja build
35+
cmake -DCMAKE_BUILD_TYPE=Debug \
36+
-DPORT=Linux \
37+
-DCMAKE_INSTALL_PREFIX=/usr \
38+
-DCMAKE_INSTALL_LIBDIR=lib \
39+
-DCMAKE_INSTALL_LIBEXECDIR=lib \
40+
-B build \
41+
-G Ninja
42+
43+
ninja -C build
44+
}
45+
46+
package() {
47+
# ninja install
48+
DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname%-git}/build install
49+
}

archlinuxcn/purc-git/lilac.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
maintainers:
2+
- github: taotieren
3+
4+
build_prefix: extra-x86_64
5+
6+
pre_build: vcs_update
7+
8+
post_build_script: |
9+
git_pkgbuild_commit()
10+
update_aur_repo()
11+
12+
update_on:
13+
- source: github
14+
github: HVML/PurC

0 commit comments

Comments
 (0)