summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0c1f9c85b889b73a3c97eba23cafa41837fec83 (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
# Maintainer: Alexis Belmonte <alexbelm48@gmail.com>
pkgname="notify-git"
pkgrel=3
pkgdesc="ntfy.sh client application to receive everyday's notifications"
pkgver=0.1.4_b7462ec
arch=('x86_64')
url="https://github.com/ranfdev/Notify"
license=('GPL3')
depends=(gtk4 gtksourceview5 libadwaita openssl)
makedepends=(grep git meson ninja cargo blueprint-compiler capnproto)
source=("git+https://github.com/ranfdev/Notify")
sha256sums=('SKIP')
options=('!lto')
_reponame="Notify"
_repodir="${pkgdir}/${_reponame}"

pkgver() {
    echo "$(grep -oP '(\d+\.){2}\d+' "${_reponame}/Cargo.toml" | head -n1)_$(cd "${_reponame}" && git rev-parse --short HEAD)"
}

prepare() {
    cd "${srcdir}" && arch-meson "${_reponame}" build ${meson_options[@]}
}

build() {
    meson compile -C build
}

package() {
    meson install -C build --destdir "${pkgdir}"
}

check() {
    meson test -C build
}