aboutsummaryrefslogtreecommitdiffstats
path: root/community/ocaml-lablgtk/APKBUILD
blob: 91e3cd215d49acfe57defd85e46637b3a76a488f (plain) (blame)
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
# Contributor: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
# Maintainer: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
pkgname=ocaml-lablgtk
_pkgname=lablgtk
pkgver=2.18.6
pkgrel=2
pkgdesc="An OCaml interface to GTK+ 2.x"
url="http://lablgtk.forge.ocamlcore.org/"
arch="all !x86 !armhf !armv7 !s390x"  # limited by ocaml aport
license="LGPL-2.1-or-later-WITH-OCaml-LGPL-linking-exception"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel
	gtk+-dev gtkspell-dev librsvg-dev gtksourceview2-dev"
makedepends="$depends_dev ocaml ocaml-compiler-libs ocaml-ocamldoc
	ocaml-camlp4-dev ocaml-findlib"
replaces="lablgtk"
provides="lablgtk=$pkgver-r$pkgrel"  # for backward compatibility
subpackages="$pkgname-dev"
source="https://forge.ocamlcore.org/frs/download.php/1726/$_pkgname-$pkgver.tar.gz
	ignore-warnings.patch"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check textrels"

build() {
	./configure --prefix=/usr
	make -j1 world
	make -j1 opt
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/ocaml/ld.conf
}

sha512sums="0d30da0e4a93b1693ac6d63161d40c8cd6d9337e105a65f3cc01b013ce7ca04aa5e1a013527cb0728a9b7b7af20d0f4c8b0cc7f9102e553dff3cf8bc83a14e5e  lablgtk-2.18.6.tar.gz
c9a5eb20cd38a8e5783caca83ea1ee5abb011e02e9c49b3ae70bb423bd90e1197dfa56c339191c05691babbb47976a953b8f8392c2a1b9a2ff5e8b0b4632b9a1  ignore-warnings.patch"