blob: b118b62b6dc0cc0199bce116d284c3ad7550706e (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=places-status-indicator-applet-for-cosmic-git
_app_id=dev.dominiccgeh.CosmicAppletPlacesStatusIndicator
pkgver=r19.a341006
pkgrel=1
pkgdesc="Menu for quickly navigating places in the sysem for COSMIC™️ DE."
arch=('x86_64')
url="https://github.com/leb-kuchen/places-status-indicator-applet-for-cosmic"
license=('GPL-3.0-or-later')
depends=('cosmic-applets')
makedepends=('cargo' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" 'cosmic-applet-places-status-indicator-git')
source=('git+https://github.com/leb-kuchen/places-status-indicator-applet-for-cosmic.git')
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd "${pkgname%-git}"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "${pkgname%-git}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "${pkgname%-git}"
install -Dm755 target/release/cosmic-applet-places-status-indicator -t "$pkgdir/usr/bin/"
install -Dm644 "data/${_app_id}.desktop" -t "$pkgdir/usr/share/applications/"
}
|