void-packages/srcpkgs/gtkd/template
2018-09-06 00:39:22 -03:00

144 lines
3.9 KiB
Bash

# Template file for 'gtkd'
pkgname=gtkd
version=3.8.3
revision=3
wrksrc="GtkD-${version}"
build_style=gnu-makefile
hostmakedepends="ldc pkg-config"
makedepends="gstreamer1-devel gtksourceview-devel libpeas-devel librsvg-devel
vte3-devel"
short_desc="D bindings for GTK+3 and related libraries"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="LGPL-3.0-or-later"
homepage="https://gtkd.org"
#changelog="https://gtkd.org/changelog.html"
distfiles="https://github.com/gtkd-developers/GtkD/archive/v${version}.tar.gz"
checksum=7e0b2a10a4908b183ba842d54e9b1dc0761dcf316b65766f430010fe3bb95593
make_build_args="LDFLAGS='' DC=ldc2"
# The compiler used is ldc2 and our LDFLAGS make it fail to compile
# so we define LDFLAGS to an empty string
make_build_target="shared-libs shared-gstreamer shared-vte shared-peas shared-gtkdgl"
make_install_args="prefix=/usr"
make_install_target="install-shared-gstreamer install-headers-gstreamer
install-shared-gtkdgl install-headers-gtkdgl install-shared install-headers
install-shared-peas install-headers-peas install-shared-vte
install-headers-vte"
do_check() {
make DC=ldc2 LDFLAGS='' test
}
libpeasd_package() {
short_desc+=" - peasd library"
pkg_install() {
vmove "usr/lib/libpeasd-3.so.*"
}
}
libpeasd-devel_package() {
depends="libpeasd-${version}_${revision} gtkd-devel-${version}_${revision}"
short_desc+=" - peasd development headers"
pkg_install() {
vmove usr/include/d/gtkd-3/peas
vmove usr/include/d/gtkd-3/peasc
vmove usr/lib/libpeasd-3.so
vmove usr/share/pkgconfig/peasd-3.pc
}
}
libgtkdgl_package() {
short_desc+=" - gtkdgl library"
pkg_install() {
vmove "usr/lib/libgtkdgl-3.so.*"
}
}
libgtkdgl-devel_package() {
depends="libgtkdgl-${version}_${revision} gtkd-devel-${version}_${revision}"
short_desc+=" - gtkdgl development headers"
pkg_install() {
vmove usr/include/d/gtkd-3/glgtk
vmove usr/include/d/gtkd-3/glgdk
vmove usr/include/d/gtkd-3/gtkglc
vmove usr/lib/libgtkdgl-3.so
vmove usr/share/pkgconfig/gtkdgl-3.pc
}
}
libvted_package() {
short_desc+=" - vted library"
pkg_install() {
vmove "usr/lib/libvted-3.so.*"
}
}
libvted-devel_package() {
depends="libvted-${version}_${revision} gtkd-devel-${version}_${revision}"
short_desc+=" - vted development headers"
pkg_install() {
vmove usr/include/d/gtkd-3/vte
vmove usr/include/d/gtkd-3/vtec
vmove usr/lib/libvted-3.so
vmove usr/share/pkgconfig/vted-3.pc
}
}
libgstreamerd_package() {
short_desc+=" - gstreamerd library"
pkg_install() {
vmove "usr/lib/libgstreamerd-3.so.*"
}
}
libgstreamerd-devel_package() {
depends="libgstreamerd-${version}_${revision} gtkd-devel-${version}_${revision}"
short_desc+=" - gstreamerd development headers"
pkg_install() {
vmove usr/include/d/gtkd-3/gst
vmove usr/include/d/gtkd-3/gstinterfaces
vmove usr/include/d/gtkd-3/gstreamer
vmove usr/include/d/gtkd-3/gstreamerc
vmove usr/lib/libgstreamerd-3.so
vmove usr/share/pkgconfig/gstreamerd-3.pc
}
}
libgtkdsv_package() {
short_desc+=" - gtkdsv library"
pkg_install() {
vmove "usr/lib/libgtkdsv-3.so.*"
}
}
libgtkdsv-devel_package() {
depends="libgtkdsv-${version}_${revision} gtkd-devel-${version}_${revision}"
short_desc+=" - gtkdsv development headers"
pkg_install() {
vmove usr/include/d/gtkd-3/gsv
vmove usr/include/d/gtkd-3/gsvc
vmove usr/lib/libgtkdsv-3.so
vmove usr/share/pkgconfig/gtkdsv-3.pc
}
}
gtkd-devel_package() {
short_desc+=" - gtkd development files"
depends="gtkd-${version}_${revision}"
pkg_install() {
vmove usr/include/d/gtkd-3/atk
vmove usr/include/d/gtkd-3/cairo
vmove usr/include/d/gtkd-3/gdk
vmove usr/include/d/gtkd-3/gdkpixbuf
vmove usr/include/d/gtkd-3/gio
vmove usr/include/d/gtkd-3/glib
vmove usr/include/d/gtkd-3/gobject
vmove usr/include/d/gtkd-3/gthread
vmove usr/include/d/gtkd-3/gtk
vmove usr/include/d/gtkd-3/gtkc
vmove usr/include/d/gtkd-3/gtkd
vmove usr/include/d/gtkd-3/pango
vmove usr/include/d/gtkd-3/rsvg
vmove usr/lib/libgtkd-3.so
vmove usr/share/pkgconfig/gtkd-3.pc
}
}