void-packages/srcpkgs/GPaste/template

52 lines
1.5 KiB
Bash
Raw Normal View History

# Template file for 'GPaste'
pkgname=GPaste
2018-11-15 02:14:19 +01:00
version=3.30.2
revision=1
2018-10-05 23:49:12 +02:00
wrksrc="gpaste-${version}"
build_style=gnu-configure
2018-10-05 23:49:12 +02:00
configure_args="--disable-static --with-gtk=3.0
--with-controlcenterdir=/usr/share/gnome-control-center/keybindings
$(vopt_enable gir introspection) $(vopt_enable gir gnome-shell-extension)
$(vopt_enable vala vala)"
hostmakedepends="gettext-devel glib-devel intltool pkg-config
$(vopt_if gir gobject-introspection) $(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 gir gjs-devel)
$(vopt_if gir mutter-devel) $(vopt_if vala vala-devel)"
short_desc="Clipboard management system"
2018-10-05 23:49:12 +02:00
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="BSD-2-Clause"
2018-10-05 23:49:12 +02:00
homepage="https://www.imagination-land.org/tags/GPaste.html"
distfiles="https://www.imagination-land.org/files/gpaste/gpaste-${version}.tar.xz"
2018-11-15 02:14:19 +01:00
checksum=a932adf57804bf085b2fee0fe5efd642ce0e58c68bddf59b6c5e4033caf2290d
2018-10-05 23:49:12 +02:00
# Package build options
build_options="gir vala"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir vala"
fi
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.*"
}
}