summaryrefslogtreecommitdiffhomepage
path: root/PKGBUILD
blob: 50c20f779233d3971cb5410a8e4f578125937f7e (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
# Maintainer: Yaroslav de la Peña Smirnov <yps@yaroslavps.com>
# Original AUR Maintainer: Thorben Günther <echo YWRtaW5AeGVucm94Lm5ldAo= | base64 -d>
# Contributor: Drew DeVault <sir@cmpwn.com>
pkgname=mako-git
_pkgname=mako
pkgver=v1.4.1.r58.g2808b0f
pkgrel=1
license=('MIT')
pkgdesc='Lightweight notification daemon for Wayland. Package for soystemd-less systems'
makedepends=("meson" "scdoc" "libelogind" "wayland-protocols" "git")
depends=(
    "gdk-pixbuf2"
    "pango"
    "cairo"
    "elogind"
    "wayland"
)
optdepends=("jq: support for 'makoctl menu'")
arch=("x86_64")
url='http://mako-project.org'
source=("${pkgname%-*}::git+https://github.com/emersion/mako.git")
sha1sums=('SKIP')
provides=('mako')
conflicts=('mako')

pkgver() {
    cd "$_pkgname"
    (
        set -o pipefail
        git describe --long 2> /dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
            printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

build() {
    cd "$_pkgname"
    meson build
    ninja -C build
}

package() {
    cd "$_pkgname"
    DESTDIR="$pkgdir/" ninja -C build install
    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"${pkgname%-*}"/LICENSE
}