summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e60cc20700ba4e4b7ebc270c7066b433f491791d (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
# Maintainer:
# Contributor: LightDot <lightdot -a-t- g m a i l>
# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>

## links
# https://wiki.gnome.org/Projects/GooCanvas
# https://gitlab.gnome.org/GNOME/goocanvas

_pkgname="goocanvas"
pkgname="${_pkgname}2"
pkgver=2.0.4
pkgrel=10
pkgdesc="A cairo canvas widget for GTK+, legacy version"
url="https://gitlab.gnome.org/GNOME/goocanvas"
license=('LGPL-2.1-or-later')
arch=('x86_64')

depends=(
  'gtk3'
)
makedepends=(
  'glib2-devel'
  'gobject-introspection'
  'python-gobject'
)

provides=("$_pkgname=$pkgver")

_pkgsrc="$_pkgname-$pkgver"
_pkgext="tar.xz"
source=("$_pkgsrc.$_pkgext"::"https://download.gnome.org/sources/goocanvas/${pkgver%.*}/$_pkgsrc.$_pkgext")
sha256sums=('c728e2b7d4425ae81b54e1e07a3d3c8a4bd6377a63cffa43006045bceaa92e90')

build() {
  export CFLAGS+=" -Wno-incompatible-pointer-types"

  cd "$_pkgsrc"
  ./configure --prefix=/usr --disable-python
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

package() {
  cd "$_pkgsrc"
  make DESTDIR="$pkgdir" install
}