blob: 71b894a207773ab83c273e5019fea0e1dcd22b93 (
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
|
# Maintainer: Blake Romero <blake@blkrom.com>
pkgname=yambar-git
pkgver=1.11.0.r66.gabeffbd
pkgrel=1
pkgdesc="Simplistic and highly configurable status paanel for Wayland"
arch=('x86_64')
url="https://codeberg.org/dnkl/yambar"
license=('MIT')
groups=()
depends=('wayland' 'wayland-protocols' 'pixman' 'glibc' 'json-c' 'alsa-lib'
'libyaml' 'libpulse' 'libpipewire' 'libmpdclient' 'libudev' 'fontconfig'
'harfbuzz' 'freetype2' 'xcb-util' 'xcb-util-cursor')
makedepends=('git' 'meson' 'ninja' 'scdoc' 'tllist')
optdepends=()
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}" "${pkgname}")
replaces=()
backup=()
options=()
install=
source=("${pkgname%-*}::git+${url}")
noextract=()
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-*}"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/; s/-/./g; s/^v//'
}
prepare() {
mkdir -p "$srcdir/${pkgname%-*}/build"
}
build() {
cd "$srcdir/${pkgname%-*}/build"
meson setup \
--prefix=/usr --buildtype=release -Db_lto=true \
-Dbackend-x11=disabled -Dbackend-wayland=enabled \
..
ninja
}
check() {
cd "$srcdir/${pkgname%-*}/build"
ninja test
}
package() {
cd "$srcdir/${pkgname%-*}/build"
DESTDIR="$pkgdir/" ninja install
install -Dm 644 \
../LICENSE "$pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE"
}
|