summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c860e33e2628ba75ed512f0d11e7a70d1ae5e3c (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
# Maintainer: Matt Quintanilla <matt @ matt quintanilla . xyz>
pkgname=lemoa-git
pkgver=0.2.0.r97.e51da62
pkgrel=2
pkgdesc="Native Gtk client for Lemmy"
arch=(x86_64)
url="https://github.com/lemmygtk/lemoa"
license=(GPL3)
depends=(gtk4 libadwaita)
provides=(lemoa)
conflicts=(lemoa)
makedepends=(cargo git meson ninja)
source=("git+${url}.git")
sha256sums=(SKIP)

pkgver() {
  cd lemoa
  printf "%s.r%s.%s" "$(git describe --tags --abbrev=0 | sed 's/^v//')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd lemoa
  meson --prefix="/usr" _build
  ninja -C _build
}

package() {
  cd lemoa
  DESTDIR="${pkgdir}" ninja -C _build install
}