blob: 05ef10527347563c9f3613cf690908c73dc0c3c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Bram <bram+sway@pescheck.io>
pkgname=sway-mirror
pkgver=1.0.1
pkgrel=1
pkgdesc="Fast zero-copy screen mirroring for Sway/wlroots"
arch=('x86_64' 'aarch64')
url="https://github.com/pescheckit/sway-mirror"
license=('MIT')
depends=('wayland' 'libgbm' 'libdrm')
makedepends=('cargo' 'wayland-protocols')
source=("$pkgname-$pkgver.tar.gz::https://github.com/pescheckit/sway-mirror/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|