summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddb1a93f12fcb7b97fc5b91bbc3f7ed835d3afbf (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: Danny Bautista <aur at pyrolagus.de>
# https://github.com/Earnestly/pkgbuilds/tree/master/bemenu-git
pkgname=bemenu-git
_pkgname="bemenu"
pkgver=r382.d9f4d1b
pkgrel=1

# Wayland without wlroots is not supported.
# https://github.com/Cloudef/bemenu/issues/79#issuecomment-572867783
pkgdesc='Dynamic menu library and client program inspired by dmenu with support for wlroots-based wayland compositors'
url='https://github.com/Cloudef/bemenu'
arch=(x86_64)
license=(GPL3 LGPL3)
provides=('bemenu')
conflicts=('bemenu')
depends=(pango)
makedepends=(cmake libxinerama libxkbcommon ncurses wayland wlroots)
optdepends=(
    'libxinerama: For the x11 backend'
    'libxkbcommon: For the wayland backend'
    'ncurses: For the curses backend'
    'wayland: For the wayland backend'
    'wayland-protocols: For the wayland backend'
    'wlroots: For the wayland backend'
)
source=("$_pkgname::git+https://github.com/Cloudef/bemenu")
sha256sums=('SKIP')

pkgver() {
    cd "$_pkgname"
    printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$_pkgname"
    make PREFIX="$pkgdir/usr"
}

package_bemenu-git() {
    cd "$_pkgname"
    make install PREFIX="$pkgdir/usr"
}