summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 651982c42ab2fba41192bfc46e1676570d9cfe3b (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: qeezzo <root@qeezzo>

pkgname=woomer-sway
pkgver=1.0.1
pkgrel=1

pkgdesc="Zoomer application for Wayland inspired by tsoding's boomer"
url="https://github.com/qeezzo/woomer"
license=("MIT")
arch=("i686" "x86_64")

depends=(
	gcc-libs
	glfw
	glibc
)

makedepends=(
	cargo
	clang
	cmake
	compiler-rt
	pkgconf
	wayland
)
options=('!debug')

source=(
	"$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
)

sha256sums=('979aa9255ac70078a382119ed64d9923af70029ca72dc481d6c68647fada8309')

prepare() {
	cd "woomer-$pkgver"
	export RUSTUP_TOOLCHAIN=stable
	cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

build() {
	cd "woomer-$pkgver"
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
	export CFLAGS="${CFLAGS//-flto=auto/}"
    cargo build --frozen --release
}

# check() {
# 	cd "woomer-$pkgver"
#     export RUSTUP_TOOLCHAIN=stable
#     cargo test --frozen --release
# }

package() {
	cd "woomer-$pkgver"
    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/woomer"
}