void-packages/srcpkgs/ocaml-lablgtk2/template

62 lines
2.1 KiB
Bash

# Template file for 'ocaml-lablgtk2'
pkgname=ocaml-lablgtk2
version=2.18.8
revision=2
wrksrc="lablgtk-${version}"
build_style=gnu-configure
configure_args="--without-glade --without-gnomeui --without-gtksourceview"
make_build_args="world opt"
hostmakedepends="ocaml ocaml-findlib m4 camlp4 pkg-config"
makedepends="gtk+-devel gtksourceview2-devel libgnomecanvas-devel gtkspell-devel"
short_desc="OCaml interface to GTK2"
maintainer="Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>"
license="LGPL-2.0-or-later"
homepage="http://lablgtk.forge.ocamlcore.org/"
distfiles="https://github.com/garrigue/lablgtk/releases/download/lablgtk2188/lablgtk-${version}.tar.gz"
checksum=91f59bafd07989ea00080f4fd65512ce339878c7117bf5116bad3b93b64d4de3
nocross=yes
nopie=yes
disable_parallel_build=yes
post_install() {
vlicense COPYING
}
ocaml-lablgtk2-gnomecanvas_package() {
depends="ocaml-lablgtk2 libgnomecanvas"
short_desc+=" - gnomecanvas bindings"
pkg_install() {
vmove "usr/lib/ocaml/lablgtk2/gnoCanvas.*"
vmove "usr/lib/ocaml/lablgtk2/gnomeCanvas.*"
vmove "usr/lib/ocaml/lablgtk2/lablgnomecanvas.*"
vmove usr/lib/ocaml/lablgtk2/liblablgnomecanvas.a
vmove usr/lib/ocaml/lablgtk2/dlllablgnomecanvas.so
}
}
ocaml-lablgtk2-gtksourceview2_package() {
depends="ocaml-lablgtk2 gtksourceview2"
short_desc+=" - gtksourceview2 bindings"
pkg_install() {
vmove "usr/lib/ocaml/lablgtk2/gSourceView2.*"
vmove "usr/lib/ocaml/lablgtk2/gtkSourceView2.*"
vmove "usr/lib/ocaml/lablgtk2/gtkSourceView2_types.*"
vmove "usr/lib/ocaml/lablgtk2/lablgtksourceview2.*"
vmove "usr/lib/ocaml/lablgtk2/sourceView2Enums.*"
vmove usr/lib/ocaml/lablgtk2/liblablgtksourceview2.a
vmove usr/lib/ocaml/lablgtk2/dlllablgtksourceview2.so
vmove usr/lib/ocaml/lablgtk2/sourceView2_tags.h
}
}
ocaml-lablgtk2-gtkspell_package() {
depends="ocaml-lablgtk2 gtkspell"
short_desc+=" - gtkspell bindings"
pkg_install() {
vmove "usr/lib/ocaml/lablgtk2/gtkSpell.*"
vmove "usr/lib/ocaml/lablgtk2/lablgtkspell.*"
vmove usr/lib/ocaml/lablgtk2/liblablgtkspell.a
vmove usr/lib/ocaml/lablgtk2/dlllablgtkspell.so
}
}