blob: 69f4b65d14caef07a7fea9a93c1c87d5291e0927 (
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: gigas002 <gigas002@pm.me>
_pkgname="abar"
pkgname="${_pkgname}-git"
pkgver=r82.g64946cd
pkgrel=1
pkgdesc="Minimalistic Wayland-native bar with pango and cairo"
arch=("x86_64")
url="https://github.com/Gigas002/abar"
license=('GPL-3.0-only')
depends=(cairo pango wayland)
makedepends=(git cargo)
optdepends=(socat)
provides=(abar)
conflicts=(abar)
source=("${_pkgname}::git+$url.git")
b2sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${_pkgname}"
cargo build --all-features --release
}
package() {
cd "${_pkgname}"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/abar"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|