blob: 8dde8ad307f67a1b8f90e7886a6bb28739212346 (
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: Leonard Seibold <git@zrtx.de>
pkgname=zlaunch-git
pkgver=r0.0.0
pkgrel=1
pkgdesc='A fast application launcher for Linux wayland desktops built with GPUI'
arch=('x86_64' 'aarch64')
url='https://github.com/zortax/zlaunch'
license=('MIT')
depends=(
'wayland'
'freetype2'
'fontconfig'
'openssl'
'libxkbcommon'
'libxkbcommon-x11'
'libxcb'
'vulkan-icd-loader'
)
makedepends=(
'cargo'
'git'
'pkg-config'
'wayland-protocols'
)
provides=('zlaunch')
conflicts=('zlaunch' 'zlaunch-bin')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname}"
if git describe --tags --abbrev=7 HEAD &>/dev/null; then
git describe --long --tags --abbrev=7 HEAD | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
else
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
fi
}
prepare() {
cd "${pkgname}"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "${pkgname}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
package() {
cd "${pkgname}"
install -Dm755 target/release/zlaunch "${pkgdir}/usr/bin/zlaunch"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|