blob: ccd3ae9f589dafe923cfc47ffba510976b49d170 (
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
33
34
35
36
|
# Maintainer: OGIOS <ogios@foxmail.com>
_pkgname=wayfreeze
pkgname=wayfreeze-git
pkgver=r63.dcbe269
pkgrel=1
pkgdesc="Tool to freeze the screen of a Wayland compositor "
arch=('x86_64' 'aarch64')
url="https://github.com/Jappie3/wayfreeze"
license=('MIT')
provides=(wayfreeze)
# conflicts=("$_pkgname"-bin)
depends=('wayland' 'libxkbcommon')
makedepends=(cargo git)
source=("git+$url.git")
options=(!debug)
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
# printf "%s" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
cargo build --release
}
package() {
cd "$_pkgname"
install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENCE"
}
|