吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1078|回复: 7
收起左侧

[其他原创] 【开源编程语言 HVML】Arch Linux 下对 PurC (hvml)进行打包

[复制链接]
taotieren 发表于 2022-11-30 09:37

PurC 发行版

Arch 及其衍生版安装 purc 方式

yay -S purc

PKGBUILD 源码

# Maintainer: taotieren <admin@taotieren.com>

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

package() {
# ninja install
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgname%-git}/build install
}

PurC 开发版

Arch 及其衍生版安装 purc-git 方式

yay -S purc-git

PKGBUILD 源码

# Maintainer: taotieren <admin@taotieren.com>

pkgbase=purc-git
pkgname=purc-git
pkgver=0.9.0.r177.g77e2b8798
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
}

免费评分

参与人数 2吾爱币 +8 热心值 +2 收起 理由
wushaominkk + 7 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
xiaoyi510 + 1 + 1 我很赞同!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

 楼主| taotieren 发表于 2022-11-30 10:01

也希望大家能多多支持国内开源的新一代编程语言。
ytw6176 发表于 2022-11-30 10:05
yuqing0419 发表于 2022-11-30 10:13
 楼主| taotieren 发表于 2022-11-30 18:58
本帖最后由 taotieren 于 2022-11-30 18:59 编辑
ytw6176 发表于 2022-11-30 10:05
国内开源整英文啊,头大

目前暂时没有提供手册。大家有空可以帮忙写写,可以到魏老师的那边 B 站看教学视频。
 楼主| taotieren 发表于 2022-11-30 18:59

暂时没有手册,只有参考例子。有精力的话可以给魏老师提一下。你们可以起草写一份。
kingyesx1 发表于 2022-12-1 22:52
英文文档就是为了增加国人学习编程增加门坎,想读通文档,在母语的基础上需要再额外增加数年学习英语的时间才能基本读懂开发文档
国内开发环境就是这样。嘴上说着要为国内生态贡献力量,但行动上呢?做工具的时候写个中文文档很难?
如果是工具是缝合起来的当我没说
 楼主| taotieren 发表于 2022-12-2 09:48
kingyesx1 发表于 2022-12-1 22:52
英文文档就是为了增加国人学习编程增加门坎,想读通文档,在母语的基础上需要再额外增加数年学习英语的时间 ...

中文手册的问题,现在已经和魏老师团队反馈了,后续会邀请 hvml 人员进来,具体问题可以咨询他们来解决,
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-17 13:41

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表