Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new package] add rio terminal #22012

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions mingw-w64-rio/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
_realname=rio
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.1.15
pkgrel=1
pkgdesc="A hardware-accelerated GPU terminal emulator powered by WebGPU (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
mingw_arch=('mingw64' 'ucrt64' 'clang64')
mingw_arch=('ucrt64' 'clang64' 'clangarm64')

url="https://github.com/raphamorim/rio"
license=('spdx:MIT')
makedepends=("${MINGW_PACKAGE_PREFIX}-rust"
"${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-pkgconf"
"${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-freetype"
Copy link
Member

@Biswa96 Biswa96 Sep 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure fontconfig and freetype dependencies are required in this build? Those are not shown in the runtime libraries list in CI log.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rust only can be left. cmake is usually used for libz-ng-sys, which is not used for package, freetype and fontconfig are probably used for Linux/macos, I didn't find them all in build logs

"${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-fontconfig")
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('2e06774a23f9f3def6c4abb3d29ada88ee2f96e88235929251b4e7dd7cd5dcf1')

prepare() {
cd "${_realname}-${pkgver}"

cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
cd "${_realname}-${pkgver}"

cargo build --frozen --release --all-features
Copy link
Collaborator

@ognevny ognevny Sep 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is --all-features required? I see all useful features are already enabled by default upstream

}

package() {
cd "${_realname}-${pkgver}"

install -Dm0755 -t "${pkgdir}${MINGW_PREFIX}/bin/" "target/release/${_realname}"
install -Dm0644 -t "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/" "LICENSE"
}