summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6dec8d44c78eacbd4d19faa75f257bc4ec86d4f (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: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: Yosef Or Boczko <yoseforb@gnome.org>

_pkgname=libpeas
pkgname=$_pkgname-git
pkgver=1.24.0.r25.gc228acf
pkgrel=1
_realver=1.14.1
pkgdesc="A GObject-based plugins engine"
arch=(i686 x86_64)
url="https://wiki.gnome.org/Projects/Libpeas"
license=(GPL2)
depends=(gtk3 gobject-introspection-runtime)
makedepends=(gtk-doc python-gobject glade gobject-introspection git meson vala)
optdepends=('python-gobject: Python loader')
options=('!libtool')
install=$_pkgname.install
provides=("${_pkgname}=${_realver}")
conflicts=("${_pkgname}")
replace=("${_pkgname}")
source=('git+https://gitlab.gnome.org/GNOME/libpeas.git')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --always | sed -E 's/^libpeas.//;s/_/./g;s/([^-]*-g)/r\1/;s|-|.|g'
}

build() {
  cd "$srcdir/$_pkgname"
  
  mkdir -p build
  cd build

  meson -D vapi=true -D gtk_doc=true
  ninja
}

package() {
  cd "$srcdir/$_pkgname"
  DESTDIR="$pkgdir" meson install -C build
}