blob: 5faedc34cf00fdc2fa6a9ac0ccead0bcf7599930 (
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
|
# Maintainer: korimitsu <korimitsu_aur.wackiness926@passinbox.com>
# Based on PKGBUILD by:
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
pkgname=ocaml4-lablgtk2-noframepointers
pkgver=2.18.12
pkgrel=2
# Not enabling '--enable-frame-pointers' in the ocaml4 configure is required for aarch64 compilation, not for x86_64. This is why all the '-noframepointers' packages exist.
pkgdesc="An Objective Caml interface to gtk2. Patched for x86_64/aarch64 and no ocaml4 frame-pointers."
arch=(x86_64 aarch64)
license=(LGPL2.1)
url="https://garrigue.github.io/lablgtk/"
depends=(gtk2 librsvg ocaml4-noframepointers)
makedepends=(
ocaml4-ocamlbuild-noframepointers
ocaml4-compiler-libs-noframepointers
ocaml4-camlp4-noframepointers
ocaml4-camlp-streams-noframepointers
ocaml4-findlib-noframepointers
)
optdepends=('ocaml4-noframepointers: for using the tools')
provides=("ocaml4-lablgtk2=${pkgver}")
conflicts=("ocaml4-lablgtk2" "lablgtk2")
options=(!makeflags staticlibs !lto)
source=("lablgtk2-${pkgver}.tar.gz::https://github.com/garrigue/lablgtk/archive/${pkgver}.tar.gz")
sha512sums=('284a1234ae817c4df49809d28c103ca5e64046da5ec9ff28c6edc0ce999e9d3e6e180dd053f8b1663d4fb3b7ba19570d53b9441c8fa622add924e8d85e41b813')
build() {
cd "${srcdir}/lablgtk-${pkgver}"
./configure --prefix=/usr \
--without-gnomeui \
--without-gnomecanvas \
--without-panel \
--without-gtkspell \
--without-gtksourceview \
--without-gtksourceview2 \
--without-glade
sed -e "s|-O|$CFLAGS|" \
-e "s|-shared|& -ccopt \"$LDFLAGS\"|" \
-e "s|(CAMLMKLIB)|& -ldopt \"$LDFLAGS\"|" \
-i src/Makefile
make world
make opt
}
package() {
cd "${srcdir}/lablgtk-${pkgver}"
make DESTDIR="${pkgdir}" old-install
install -m644 META "${pkgdir}/usr/lib/ocaml/lablgtk2/"
}
|