void-packages/srcpkgs/GPaste/template
2020-01-28 11:31:26 +01:00

52 lines
1.6 KiB
Bash

# Template file for 'GPaste'
pkgname=GPaste
version=3.34.1
revision=1
wrksrc="gpaste-${version}"
build_helper="gir"
build_style=gnu-configure
configure_args="--disable-static --with-gtk=3.0
--with-controlcenterdir=/usr/share/gnome-control-center/keybindings
$(vopt_enable gir introspection) $(vopt_enable gnome_shell gnome-shell-extension)
$(vopt_enable vala vala)"
hostmakedepends="gettext glib-devel pkg-config $(vopt_if vala vala)"
makedepends="appstream-glib-devel dbus-devel gdk-pixbuf-devel gtk+3-devel
libglib-devel libXi-devel libXtst-devel libX11-devel $(vopt_if gnome_shell gjs-devel)
$(vopt_if gnome_shell mutter-devel) $(vopt_if vala vala-devel)"
short_desc="Clipboard management system"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://www.imagination-land.org/tags/GPaste.html"
distfiles="https://www.imagination-land.org/files/gpaste/gpaste-${version}.tar.xz"
checksum=f1ae4c94ad5b6b4115bac6cf3ac4248e4bce6b401f867173742eb62823c6527d
build_options="gir gnome_shell vala"
desc_option_gnome_shell="Build GNOME Shell integration and extension"
build_options_default="gir gnome_shell vala"
pre_build() {
export GIR_EXTRA_LIBS_PATH="${wrksrc}/lib/.libs"
}
post_install() {
vlicense COPYING
}
GPaste-devel_package() {
depends="libgpaste-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/gir-1.0
vmove usr/share/vala
vmove "usr/lib/*.so"
}
}
libgpaste_package() {
short_desc+=" - gpaste library"
pkg_install() {
vmove "usr/lib/libgpaste.so.*"
}
}