Skip to content

Commit

Permalink
zellij: Housekeeping
Browse files Browse the repository at this point in the history
**Summary**

- Add appstream metainfo (Part of #1389)
- Use cargo macros (Part of #3111)
  • Loading branch information
malfisya committed Jul 14, 2024
1 parent 61206c4 commit 8d79250
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 12 deletions.
3 changes: 1 addition & 2 deletions packages/z/zellij/abi_used_symbols
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ libc.so.6:__assert_fail
libc.so.6:__ctype_b_loc
libc.so.6:__ctype_tolower_loc
libc.so.6:__cxa_atexit
libc.so.6:__environ
libc.so.6:__errno_location
libc.so.6:__fdelt_chk
libc.so.6:__fprintf_chk
Expand Down Expand Up @@ -82,6 +81,7 @@ libc.so.6:ftruncate64
libc.so.6:fwrite
libc.so.6:gai_strerror
libc.so.6:getaddrinfo
libc.so.6:getauxval
libc.so.6:getcontext
libc.so.6:getcwd
libc.so.6:getenv
Expand Down Expand Up @@ -119,7 +119,6 @@ libc.so.6:memchr
libc.so.6:memcmp
libc.so.6:memcpy
libc.so.6:memmove
libc.so.6:memrchr
libc.so.6:memset
libc.so.6:mkdir
libc.so.6:mmap
Expand Down
29 changes: 29 additions & 0 deletions packages/z/zellij/files/dev.zellij.Zellij.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>dev.zellij.Zellij</id>

<name>Zellij</name>
<summary>A terminal workspace with batteries included</summary>

<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>

<description>
<p>
Zellij is a terminal workspace. It has the base functionality of a terminal multiplexer (similar to tmux or screen) but includes many built-in features that would allow users to extend it and create their own personalized environment.
</p>
</description>

<launchable type="desktop-id">zellij.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://zellij.dev/img/tutorial-1-preview.png</image>
</screenshot>
<screenshot>
<image>https://zellij.dev/img/tutorial-2-preview.png</image>
</screenshot>
<screenshot>
<image>https://zellij.dev/img/tutorial-3-preview.png</image>
</screenshot>
</screenshots>
</component>
Binary file added packages/z/zellij/files/zellij.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 10 additions & 4 deletions packages/z/zellij/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name : zellij
version : 0.40.1
release : 6
release : 7
source :
- https://github.com/zellij-org/zellij/archive/refs/tags/v0.40.1.tar.gz : 1f0bfa13f2dbe657d76341a196f98a3b4caa47ac63abee06b39883a11ca220a8
homepage : https://zellij.dev
Expand All @@ -14,9 +14,9 @@ builddeps :
- mandown
- rust
setup : |
cargo fetch --locked --target "x86_64-unknown-linux-gnu"
%cargo_fetch --target "x86_64-unknown-linux-gnu"
build : |
cargo build --release --frozen
%cargo_build
# Build completions
./target/release/zellij setup --generate-completion bash > target/zellij.bash
Expand All @@ -26,7 +26,7 @@ build : |
# Build manpage
mandown docs/MANPAGE.md > assets/zellij.1
install : |
install -Dm755 target/release/zellij -t "$installdir/usr/bin"
%cargo_install
# Install completions
install -Dm644 target/zellij.bash "$installdir/usr/share/bash-completion/completions/zellij"
Expand All @@ -38,3 +38,9 @@ install : |
# Install desktop file
install -Dm644 assets/zellij.desktop "$installdir/usr/share/applications/zellij.desktop"
# Install app icon
install -Dm644 $pkgfiles/zellij.png "$installdir/usr/share/icons/hicolor/256x256/apps/zellij.png"
# Install AppStream Metainfo
install -Dm644 $pkgfiles/dev.zellij.Zellij.metainfo.xml "$installdir/usr/share/metainfo/dev.zellij.Zellij.metainfo.xml"
14 changes: 8 additions & 6 deletions packages/z/zellij/pspec_x86_64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Name>zellij</Name>
<Homepage>https://zellij.dev</Homepage>
<Packager>
<Name>Evan Maddock</Name>
<Email>[email protected]</Email>
<Name>Muhammad Alfi Syahrin</Name>
<Email>[email protected]</Email>
</Packager>
<License>MIT</License>
<PartOf>system.utils</PartOf>
Expand All @@ -24,17 +24,19 @@
<Path fileType="data">/usr/share/applications/zellij.desktop</Path>
<Path fileType="data">/usr/share/bash-completion/completions/zellij</Path>
<Path fileType="data">/usr/share/fish/vendor_completions.d/zellij.fish</Path>
<Path fileType="data">/usr/share/icons/hicolor/256x256/apps/zellij.png</Path>
<Path fileType="man">/usr/share/man/man1/zellij.1</Path>
<Path fileType="data">/usr/share/metainfo/dev.zellij.Zellij.metainfo.xml</Path>
<Path fileType="data">/usr/share/zsh/site-functions/_zellij</Path>
</Files>
</Package>
<History>
<Update release="6">
<Date>2024-05-02</Date>
<Update release="7">
<Date>2024-07-14</Date>
<Version>0.40.1</Version>
<Comment>Packaging update</Comment>
<Name>Evan Maddock</Name>
<Email>[email protected]</Email>
<Name>Muhammad Alfi Syahrin</Name>
<Email>[email protected]</Email>
</Update>
</History>
</PISI>

0 comments on commit 8d79250

Please sign in to comment.