summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b5a1f105720afa875b0a63ea23b7d6aa1581bb7 (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: Rafael Fontenelle <rafaelff@gnome.org>
pkgname=gnome-social-git
_name=social
pkgver=0.1.0.r206.1cbaccd
pkgrel=1
pkgdesc="A Mastodon and Pleroma application for GNOME"
arch=(x86_64)
url="https://gitlab.gnome.org/World/social"
license=('GPL3')
depends=('appstream-glib' 'libhandy' 'gtksourceview4')
makedepends=('git' 'meson' 'rust' 'cmake')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=("git+${url}.git")
md5sums=('SKIP')

pkgver() {
  cd $_name
  v=$(grep -R -A3 '^project(' meson.build | grep 'version:' | cut -d\' -f2)
  printf "$v.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  meson --prefix=/usr --buildtype=plain $_name build
  ninja -C build
}

package() {
  DESTDIR="$pkgdir" ninja -C build install
}