吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1630|回复: 1
收起左侧

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

[复制链接]
taotieren 发表于 2022-12-5 09:30

xguipro 发行版

Arch 及其衍生版安装 xguipro 方式

yay -S xguipro-gtk3
# or
yay -S xguipro-gtk4

PKGBUILD 源码

# Maintainer: taotieren <admin@taotieren.com>

pkgbase=xguipro
pkgname=(xguipro-gtk3 xguipro-gtk4)
pkgver=0.6.1
pkgrel=3
pkgdesc="xGUI (the X Graphics User Interface) Pro is a modern, cross-platform, and advanced HVML renderer which is based on tailored WebKit."
arch=('x86_64' 'aarch64' 'mips64' 'powerpc' 'powerpc64le')
url="https://github.com/HVML/xGUI-Pro"
license=('LGPL-3.0')
groups=('hvml-git')
provides=(${pkgbase}  'xGUI-Pro')
conflicts=(${pkgbase})
replaces=()
depends=('glib2' 'gperf' 'enchant')
makedepends=('git' 'cmake' 'ninja' 'ccache' 'gcc' 'python' 'libxml2' 'ruby' 'curl' 'openssl' 'sqlite' 'pkgconf' 'zlib' 'icu' 'webkit2gtk-hvml' 'patch')
optdepends=('purc: The prime HVML interpreter for C Language.'
            'purc-midnight-commander: A generic HVML renderer in text mode for development and debugging.'
            'webkit2gtk-hvml: Web content engine for GTK (HVML)')
backup=()
options=()
install=
source=("${pkgbase}-${pkgver}.tar.gz::${url}/archive/refs/tags/ver-${pkgver}.tar.gz"
        "fix-ver-0.6.1.patch")
sha256sums=('bf24d4aa9110d2e7b674256ea89a359ef87c9f0d44aefeb9457ac732a281836a'
            '62638afcf82751985ee8faff07a820bd60b1b80a1475e820f63cbd1d3e0b814a')

prepare() {
    cd "${srcdir}/xGUI-Pro-ver-${pkgver}/"
    patch -p1 < ../fix-ver-0.6.1.patch
}

package_xguipro-gtk3() {
    pkgdesc+=" (gtk3)"
    depends+=('gtk3' 'libsoup')
    conflicts=(${pkgbase})

    cd "${srcdir}/xGUI-Pro-ver-${pkgver}/"

# CMake build
#     cmake -DCMAKE_BUILD_TYPE=Release \
#         -DPORT=GTK \
#         -DCMAKE_INSTALL_PREFIX=/usr \
#         -DCMAKE_INSTALL_LIBDIR=lib \
#         -DCMAKE_INSTALL_LIBEXECDIR=lib \
#         -DENABLE_GAMEPAD=OFF \
#         -DENABLE_INTROSPECTION=OFF \
#         -DUSE_SOUP2=ON \
#         -DUSE_WPE_RENDERER=OFF \
#         -DUSE_LCMS=OFF \
#         -B build-gtk3 \

#     cmake --build build-gtk3
# Ninja build
    cmake -DCMAKE_BUILD_TYPE=Release \
        -DPORT=GTK \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_INSTALL_LIBEXECDIR=lib \
        -DENABLE_GAMEPAD=OFF \
        -DENABLE_INTROSPECTION=OFF \
        -DUSE_SOUP2=ON \
        -DUSE_WPE_RENDERER=OFF \
        -DUSE_LCMS=OFF \
        -B build-gtk3 \
        -G Ninja

    ninja -C build-gtk3
# make install
#     make -C "${srcdir}"/xGUI-Pro-ver-${pkgver}/build-gtk3 install DESTDIR="${pkgdir}"

# ninja install
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/xGUI-Pro-ver-${pkgver}/build-gtk3 install
}

package_xguipro-gtk4() {
    pkgdesc+=" (gtk4)"
    depends+=('gtk4' 'libsoup3')
    conflicts=(${pkgbase})

    cd "${srcdir}/xGUI-Pro-ver-${pkgver}/"

# CMake build
#     cmake -DCMAKE_BUILD_TYPE=Release \
#         -DPORT=GTK \
#         -DCMAKE_INSTALL_PREFIX=/usr \
#         -DCMAKE_INSTALL_LIBDIR=lib \
#         -DCMAKE_INSTALL_LIBEXECDIR=lib \
#         -DENABLE_GAMEPAD=OFF \
#         -DENABLE_INTROSPECTION=OFF \
#         -DUSE_SOUP3=ON \
#         -DUSE_WPE_RENDERER=OFF \
#         -DUSE_LCMS=OFF \
#         -B build-gtk4 \

#     cmake --build build-gtk4

# Ninja build
    cmake -DCMAKE_BUILD_TYPE=Release \
        -DPORT=GTK \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_INSTALL_LIBEXECDIR=lib \
        -DENABLE_GAMEPAD=OFF \
        -DENABLE_INTROSPECTION=OFF \
        -DUSE_SOUP3=ON \
        -DUSE_WPE_RENDERER=OFF \
        -DUSE_LCMS=OFF \
        -B build-gtk4 \
        -G Ninja

    ninja -C build-gtk4
# make install
#     make -C "${srcdir}"/xGUI-Pro-ver-${pkgver}/build-gtk4 install DESTDIR="${pkgdir}"

# ninja install
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/xGUI-Pro-ver-${pkgver}/build-gtk4 install
}

xguipro 开发版

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

yay -S xguipro-gtk3-git
# or
yay -S xguipro-gtk4-git

PKGBUILD 源码

# Maintainer: taotieren <admin@taotieren.com>

pkgbase=xguipro-git
pkgname=(xguipro-gtk3-git xguipro-gtk4-git)
pkgver=0.6.1.r5.gcb2ca06
pkgrel=2
pkgdesc="xGUI (the X Graphics User Interface) Pro is a modern, cross-platform, and advanced HVML renderer which is based on tailored WebKit."
arch=('x86_64' 'aarch64' 'mips64' 'powerpc' 'powerpc64le')
url="https://github.com/HVML/xGUI-Pro"
license=('LGPL-3.0')
groups=('hvml-git')
provides=(${pkgbase%-git}  'xGUI-Pro')
conflicts=(${pkgbase%-git})
replaces=()
depends=('glib2' 'gperf' 'enchant')
makedepends=('git' 'cmake' 'ninja' 'ccache' 'gcc' 'python' 'libxml2' 'ruby' 'curl' 'openssl' 'sqlite' 'pkgconf' 'zlib' 'icu' 'webkit2gtk-hvml')
optdepends=('purc: The prime HVML interpreter for C Language.'
            'purc-midnight-commander: A generic HVML renderer in text mode for development and debugging.'
            'webkit2gtk-hvml: Web content engine for GTK (HVML)')
backup=()
options=('!strip')
install=
source=("${pkgbase%-git}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgbase%-git}/"
#     git describe --long --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
    git describe --always --tags | sed 's/ver.//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package_xguipro-gtk3-git() {
    pkgdesc+=" (gtk3)"
    depends+=('gtk3' 'libsoup')
    conflicts=(${pkgbase%-git})

    cd "${srcdir}/${pkgbase%-git}"

# CMake build
#     cmake -DCMAKE_BUILD_TYPE=Release \
#         -DPORT=GTK \
#         -DCMAKE_INSTALL_PREFIX=/usr \
#         -DCMAKE_INSTALL_LIBDIR=lib \
#         -DCMAKE_INSTALL_LIBEXECDIR=lib \
#         -DENABLE_GAMEPAD=OFF \
#         -DENABLE_INTROSPECTION=OFF \
#         -DUSE_SOUP2=ON \
#         -DUSE_WPE_RENDERER=OFF \
#         -DUSE_LCMS=OFF \
#         -B build-gtk3 \

#     cmake --build build-gtk3

# Ninja build
    cmake -DCMAKE_BUILD_TYPE=Release \
        -DPORT=GTK \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_INSTALL_LIBEXECDIR=lib \
        -DENABLE_GAMEPAD=OFF \
        -DENABLE_INTROSPECTION=OFF \
        -DUSE_SOUP2=ON \
        -DUSE_WPE_RENDERER=OFF \
        -DUSE_LCMS=OFF \
        -B build-gtk3 \
        -G Ninja

    ninja -C build-gtk3

# make install
#     make -C "${srcdir}"/${pkgbase%-git}/build install DESTDIR="${pkgdir}"

# ninja install
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgbase%-git}/build-gtk3 install
}

package_xguipro-gtk4-git() {
    pkgdesc+=" (gtk4)"
    depends+=('gtk4' 'libsoup3')
    conflicts=(${pkgbase%-git})

    cd "${srcdir}/${pkgbase%-git}"

# CMake build
#     cmake -DCMAKE_BUILD_TYPE=Release \
#         -DPORT=GTK \
#         -DCMAKE_INSTALL_PREFIX=/usr \
#         -DCMAKE_INSTALL_LIBDIR=lib \
#         -DCMAKE_INSTALL_LIBEXECDIR=lib \
#         -DENABLE_GAMEPAD=OFF \
#         -DENABLE_INTROSPECTION=OFF \
#         -DUSE_SOUP3=ON \
#         -DUSE_WPE_RENDERER=OFF \
#         -DUSE_LCMS=OFF \
#         -B build-gtk4 \

#     cmake --build build-gtk4

# Ninja build
    cmake -DCMAKE_BUILD_TYPE=Release \
        -DPORT=GTK \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_INSTALL_LIBEXECDIR=lib \
        -DENABLE_GAMEPAD=OFF \
        -DENABLE_INTROSPECTION=OFF \
        -DUSE_SOUP3=ON \
        -DUSE_WPE_RENDERER=OFF \
        -DUSE_LCMS=OFF \
        -B build-gtk4 \
        -G Ninja

    ninja -C build-gtk4

# make install
#     make -C "${srcdir}"/${pkgbase%-git}/build install DESTDIR="${pkgdir}"

# ninja install
    DESTDIR="${pkgdir}" ninja -C "${srcdir}"/${pkgbase%-git}/build-gtk4 install
}

免费评分

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

查看全部评分

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

tk345497747 发表于 2022-12-5 09:50
多谢分享!!!!!!!!
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

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

GMT+8, 2024-11-25 03:01

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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