summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2791307e81b4df2b9a12d375243988609830d596 (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
46
47
48
49
50
51
52
53
54
55
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: ksj <podhorsky.ksj@gmail.com>
# Contributor: yochananmarqos <mark -dot- wagie -at- proton -dot- me>

_pkgname=geany
pkgname=$_pkgname-git
pkgver=2.0.0.r118.gef2255bce
pkgrel=1
pkgdesc='Fast and lightweight IDE (git version)'
arch=(x86_64)
url='https://www.geany.org/'
license=(GPL-2.0-or-later)
depends=(at-spi2-core cairo gcc-libs gdk-pixbuf2 glib2 glibc
         hicolor-icon-theme gtk3 pango python)
makedepends=(doxygen git gtk-doc meson python-docutils python-lxml vte3)
optdepends=(
  'geany-plugins: additional functionality'
  'vte3: enbedded terminal support'
)
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+https://github.com/$_pkgname/$_pkgname.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  test -d $_pkgname-build && extra_opts="--reconfigure"
  arch-meson $_pkgname $_pkgname-build \
    -Dhtml-docs=enabled \
    -Dpdf-docs=disabled \
    -Dplugins=true \
    -Dapi-docs=enabled \
    -Dgtkdoc=true \
    -Dvte=true \
    -Dmac-integration=disabled \
    $extra_opts
  meson compile -C $_pkgname-build
}

check() {
  export NO_AT_BRIDGE=1
  meson test -C $_pkgname-build --print-errorlogs
}

package() {
  depends+=(libatk-1.0.so libcairo.so libgdk_pixbuf-2.0.so libgio-2.0.so
            libglib-2.0.so libgmodule-2.0.so libgobject-2.0.so libgtk-3.so
            libpango-1.0.so libpangocairo-1.0.so)
  meson install -C $_pkgname-build --destdir "$pkgdir"
  mv "$pkgdir"/usr/share/doc/$_pkgname "$pkgdir"/usr/share/doc/$pkgname
}