76 lines
2.0 KiB
Bash
76 lines
2.0 KiB
Bash
# Template file for 'gtkd'
|
|
pkgname=gtkd
|
|
version=3.8.2
|
|
revision=2
|
|
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="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=680582e27fcc28dbc894d4aefc5e73bcdd0911c6e31ade229de0ecf7050184ee
|
|
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*.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"
|
|
}
|
|
}
|