void-packages/srcpkgs/GPaste/template
2021-10-31 00:26:09 -03:00

51 lines
1.5 KiB
Bash

# Template file for 'GPaste'
pkgname=GPaste
version=3.40.3
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
--enable-introspection --enable-vala $(vopt_enable gnome_shell gnome-shell-extension)"
hostmakedepends="automake gettext glib-devel pkg-config vala"
makedepends="appstream-glib-devel dbus-devel gdk-pixbuf-devel gtk+3-devel
libglib-devel libXi-devel libXtst-devel libX11-devel harfbuzz-devel
$(vopt_if gnome_shell 'gjs-devel mutter-devel') 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=e00f67f2186dc6a939c699931624f3b4061ddbc9b11582bfed8cb6e9870db2f9
build_options="gnome_shell"
desc_option_gnome_shell="Build GNOME Shell integration and extension"
build_options_default="gnome_shell"
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.*"
}
}