51 lines
1.5 KiB
Bash
51 lines
1.5 KiB
Bash
# Template file for 'GPaste'
|
|
pkgname=GPaste
|
|
version=3.30.2
|
|
revision=1
|
|
wrksrc="gpaste-${version}"
|
|
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 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"
|
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
|
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=a932adf57804bf085b2fee0fe5efd642ce0e58c68bddf59b6c5e4033caf2290d
|
|
|
|
# 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.*"
|
|
}
|
|
}
|