summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5777f41f922ab472794fc7faff34f3cc81c5f323 (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
56
57
58
59
# Maintainer: Grey Christoforo <first name [at] last name [dot] net>

pkgname=gtksheet-git
pkgver=4.3.9.r5.gecfe8eb
pkgrel=1
pkgdesc="A spreadsheet widget for gtk3"
arch=(x86_64)
url=http://fpaquet.github.io/gtksheet/
license=('GPL2')
conflicts=(gtksheet)
provides=(gtksheet)
depends=(
gtk3
pango
cairo
atk
glade
gobject-introspection
)
makedepends=(
meson
)
source=(
"git+https://github.com/fpaquet/gtksheet.git#branch=gtk3_fixes"
build_fix.patch
)
sha256sums=('SKIP'
            '4e1a273250f3a22e2e40d2942445e66dce1710037f411e2f3a7fd351f3f98e06')

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

prepare() {
  cd gtksheet
  cat ../build_fix.patch | patch -p1
}

build() {
  arch-meson gtksheet build \
    -D enable-gtk-doc=false \
    -D enable-introspection=true \
    -D enable-glade=true \
    -D enable-tests=true

  meson compile -C build
}

check() {
  true
  # meson test -C build  # this is interactive
}

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

# vim:ts=2:sw=2:et: