blob: 64ae9152225330e6cf60a7e4e5bfb84d786b9417 (
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
58
59
60
61
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=('pop-launcher' 'pop-shell-plugin-system76-power')
pkgbase=pop-launcher
pkgver=1.2.1
pkgrel=4
arch=('x86_64' 'aarch64')
url="https://github.com/pop-os/launcher"
license=('MPL-2.0')
depends=(
'dbus'
'fd'
'libqalculate'
'pop-icon-theme'
'sh'
'xdg-utils'
)
makedepends=(
'cargo'
'just'
)
source=("$pkgbase-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('00f6386851a770d988eab58b367a592a7df3b69c17c99f9daea2bd40a1f69d5a')
prepare() {
cd "launcher-$pkgver"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
just vendor
sed -i 's|{{bin_path}}|/usr/bin/pop-launcher|g' justfile
}
build() {
cd "launcher-$pkgver"
CFLAGS+=" -ffat-lto-objects"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
just vendor=1
}
package_pop-launcher() {
pkgdesc="Modular IPC-based desktop launcher service"
optdepends=('pop-shell-plugin-system76-power')
cd "launcher-$pkgver"
install -Dm755 "target/release/$pkgname-bin" "$pkgdir/usr/bin/$pkgname"
just rootdir="$pkgdir" install_plugins install_scripts
rm -rf "$pkgdir/usr/lib/$pkgbase/scripts/system76-power"
}
package_pop-shell-plugin-system76-power() {
pkgdesc="System76 Power scripts for the launcher"
depends=('gnome-terminal' 'pop-launcher' 'system76-power')
conflicts=('pop-launcher-system76-power')
cd "launcher-$pkgver"
install -d "$pkgdir/usr/lib/$pkgbase/scripts"
cp -r scripts/system76-power "$pkgdir/usr/lib/$pkgbase/scripts/"
}
|