void-packages/srcpkgs/cairo-dock-plugins/template
Đoàn Trần Công Danh 9978e00086 srcpkgs: remove patch_args=-Np1 en-mass
git grep -l '^patch_args=.*p1' 'srcpkgs/*/template'  |
	xargs -r sed -i '/^patch_args=/d'
2021-06-20 13:17:29 +07:00

45 lines
1.3 KiB
Bash

# Template file for 'cairo-dock-plugins'
pkgname=cairo-dock-plugins
version=3.4.1
revision=15
build_style=cmake
hostmakedepends="gettext pkg-config"
makedepends="alsa-lib-devel fftw-devel pulseaudio-devel libexif-devel
libical-devel libxklavier-devel zeitgeist-devel libsensors-devel vala-devel
cairo-dock-devel gnome-menus-devel vte3-devel python3-devel upower-devel"
depends="cairo-dock>=${version} upower"
short_desc="Plugins for cairo-dock"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later"
homepage="https://launchpad.net/cairo-dock"
distfiles="http://launchpad.net/cairo-dock-plug-ins/${version%.?}/${version}/+download/cairo-dock-plug-ins-${version}.tar.gz"
checksum=e09b8e600398749d1f74b26e645b477a1844a3eea02fcadd6877935da3f8639e
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" python3-devel vala-devel"
fi
CFLAGS="-fcommon"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
CFLAGS+=" -D_GNU_SOURCE"
fi
pre_configure() {
# Disable Logout plugin
echo -n > logout/CMakeLists.txt
}
cairo-dock-plugins-python3_package() {
depends="python3 ${sourcepkg}>=${version}_${revision}"
short_desc+=" - python3 bindings"
pkg_install() {
vmove ${py3_sitelib}
}
}
cairo-dock-plugins-vala_package() {
depends="vala-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - Vala bindings"
pkg_install() {
vmove usr/share/vala
}
}