blob: 4ef0a7eb2159f7a9e0f96d86f0946f289737ac26 (
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
|
# Maintainer: Nick Dowsett <nickd42 AT gmail DOT com>
pkgname=cosmic-applet-arch
pkgver=1.0.0.beta.3
pkgrel=1
pkgdesc='COSMIC applet to display Arch Linux package status'
arch=(x86_64)
url=https://github.com/nick42d/cosmic-applet-arch
license=(GPL-3.0-only)
depends=(
cosmic-icon-theme
git
pacman-contrib
openssl
libxkbcommon
)
makedepends=(
pkgconf
cargo
git
just
lld
)
source=(git+https://github.com/nick42d/cosmic-applet-arch.git#tag=${pkgname}-v${pkgver})
b2sums=('c74b49671182692b25db3dcf9a51c5efe8275500adcd3c64f18670f8acb4f6e6666031ab8e4b4fdb5e19100b64d64ca26ab5f2bfc9ad909362130a1652bd2182')
prepare() {
cd cosmic-applet-arch
cargo fetch --locked
sed 's/lto = "fat"/lto = "thin"/' -i Cargo.toml
}
build() {
cd cosmic-applet-arch
RUSTFLAGS+=" -C link-arg=-fuse-ld=lld"
just build-release --frozen
}
package() {
cd cosmic-applet-arch
just rootdir="${pkgdir}" install
}
|