mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
portty build from release
This commit is contained in:
commit
4ea6e96a62
2 changed files with 57 additions and 0 deletions
15
.SRCINFO
Normal file
15
.SRCINFO
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
pkgbase = portty
|
||||
pkgdesc = XDG Desktop Portal backend for TTY environments
|
||||
pkgver = 0.2.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/werdxz/portty
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
makedepends = rustup
|
||||
depends = xdg-desktop-portal
|
||||
provides = portty
|
||||
conflicts = portty-git
|
||||
source = portty-0.2.0.tar.gz::https://github.com/WERDXZ/portty/archive/refs/tags/v0.2.0.tar.gz
|
||||
sha256sums = PLACEHOLDER
|
||||
|
||||
pkgname = portty
|
||||
42
PKGBUILD
Normal file
42
PKGBUILD
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Maintainer: werdxz
|
||||
|
||||
pkgname=portty
|
||||
pkgver=0.2.0
|
||||
pkgrel=1
|
||||
pkgdesc="XDG Desktop Portal backend for TTY environments"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/werdxz/portty"
|
||||
license=('MIT')
|
||||
depends=('xdg-desktop-portal')
|
||||
makedepends=('rustup')
|
||||
provides=('portty')
|
||||
conflicts=('portty-git')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/WERDXZ/portty/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha256sums=('PLACEHOLDER')
|
||||
|
||||
build() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
rustup run nightly cargo build --release --locked
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
|
||||
# Install daemon
|
||||
install -Dm755 "target/release/porttyd" "$pkgdir/usr/lib/portty/porttyd"
|
||||
|
||||
# Install CLI
|
||||
install -Dm755 "target/release/portty" "$pkgdir/usr/bin/portty"
|
||||
|
||||
# Install portal file
|
||||
install -Dm644 "misc/tty.portal" "$pkgdir/usr/share/xdg-desktop-portal/portals/tty.portal"
|
||||
|
||||
# Install systemd service
|
||||
install -Dm644 "misc/portty.service" "$pkgdir/usr/lib/systemd/user/portty.service"
|
||||
|
||||
# Install license
|
||||
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
||||
# Install example config
|
||||
install -Dm644 "misc/config.toml.example" "$pkgdir/usr/share/doc/$pkgname/config.toml.example"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue