blob: 9012a1fb21abb878411f2f46ffe7e66686bfde22 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=('pop-launcher-git' 'pop-shell-plugin-system76-power-git')
pkgbase=pop-launcher-git
pkgver=1.0.1.r10.g55c1b6e
pkgrel=2
arch=('x86_64' 'aarch64')
url="https://github.com/pop-os/launcher"
license=('GPL3')
depends=('fd' 'gtk3' 'libqalculate')
makedepends=('cargo' 'git')
source=('git+https://github.com/pop-os/launcher.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/launcher"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/launcher"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$srcdir/launcher"
export RUSTUP_TOOLCHAIN=stable
make
}
package_pop-launcher-git() {
pkgdesc="Modular IPC-based desktop launcher service"
optdepends=('pop-launcher-system76-power')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
cd "$srcdir/launcher"
sed -i "s|${pkgbase%-git}-bin \$(BIN)|${pkgbase%-git}-bin $pkgdir/usr/bin/${pkgbase%-git}|g" Makefile
make BIN="/usr/bin/${pkgbase%-git}" DESTDIR="$pkgdir/" install
rm -rf "$pkgdir/usr/lib/${pkgbase%-git}/scripts/system76-power"
}
package_pop-shell-plugin-system76-power-git() {
pkgdesc="System76 Power scripts for the launcher"
depends=('pop-shell' 'system76-power')
conflicts=("${pkgname%-git}" 'pop-launcher-system76-power')
replaces=('pop-launcher-system76-power-git')
cd "$srcdir/launcher"
install -d "$pkgdir/usr/lib/${pkgbase%-git}/scripts"
cp -r scripts/system76-power "$pkgdir/usr/lib/${pkgbase%-git}/scripts"
}
|