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