blob: d662a12ca35fdb3dee7276eabe59ab906e348e6f (
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
|
# Maintainer: Ponas <mykolas.peteraitis@gmail.com>
pkgname="netctl-tray-auto"
pkgver=0.2.2
pkgrel=1
pkgdesc="A lightweight netctl tray app with notifications (netctl-auto)"
arch=('x86_64')
url="https://github.com/PonasKovas/netctl-tray"
license=('MIT')
makedepends=('rustup'
'cmake')
depends=('qt5-base'
'polkit')
conflicts=("netctl-tray")
install=".install"
source=("netctl-tray-${pkgver}.tar.gz::https://github.com/PonasKovas/netctl-tray/archive/${pkgver}.tar.gz")
md5sums=('d6fb801d64b3e75c0b49d65cac673e89')
build () {
cd "$srcdir/netctl-tray-$pkgver"
rustup toolchain install nightly
rustup update
RUSTUP_TOOLCHAIN=nightly \
RUSTFLAGS="-Ctarget-cpu=native" cargo +nightly build --release --features "auto"
}
package() {
cd "$srcdir/netctl-tray-$pkgver"
install -Dm755 target/release/netctl-tray "${pkgdir}/usr/bin/netctl-tray-auto"
install -d "${pkgdir}/usr/share/netctl-tray/"
install -Dm644 assets/* "${pkgdir}/usr/share/netctl-tray/"
install -dm0750 "${pkgdir}/usr/share/polkit-1/rules.d/"
install -Dm0644 scripts/netctl-tray.rules "${pkgdir}/usr/share/polkit-1/rules.d/netctltray.rules"
}
|