74 lines
2 KiB
Bash
74 lines
2 KiB
Bash
# Template file for 'gtkd'
|
|
pkgname=gtkd
|
|
version=3.7.5
|
|
revision=2
|
|
wrksrc="GtkD-${version}"
|
|
build_style=gnu-makefile
|
|
# The compiler used is ldc2 and our LDFLAGS make it fail to compile
|
|
# so we define LDFLAGS to an empty string
|
|
make_build_args="LDFLAGS='' DC=ldc2"
|
|
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"
|
|
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="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="http://gtkd.org"
|
|
distfiles="https://github.com/gtkd-developers/GtkD/archive/v${version}.tar.gz"
|
|
checksum=9882ebae0ccdca7dc5850842bf547bec2cbdfa6f1b87909f84f20c59ac9da5c1
|
|
|
|
do_check() {
|
|
make DC=ldc2 LDFLAGS='' test
|
|
}
|
|
|
|
libpeasd_package() {
|
|
short_desc="Peasd library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libpeasd*.so.*"
|
|
}
|
|
}
|
|
|
|
libgtkdgl_package() {
|
|
short_desc="Gtkdgl library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libgtkdgl*.so.*"
|
|
}
|
|
}
|
|
|
|
libvted_package() {
|
|
short_desc="Vted library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libvted*.so.*"
|
|
}
|
|
}
|
|
|
|
libgstreamerd_package() {
|
|
short_desc="Gstreamerd library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libgstreamerd*.so.*"
|
|
}
|
|
}
|
|
|
|
libgtkdsv_package() {
|
|
short_desc="Gtkdsv library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libgtkdsv*.so.*"
|
|
}
|
|
}
|
|
|
|
gtkd-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="gtkd-${version}_${revision} libpeasd-${version}_${revision}
|
|
libgstreamerd-${version}_${revision} libvted-${version}_${revision}
|
|
libgtkdsv-${version}_${revision} libgtkdgl-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/share/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|