### this file is sourced not run
# source: step

repo=cairo-dock-plug-ins
pkgname=${repo} # for SLACKDESC

hash=02ad3401d4a3147fa89745ec4525b72542f925b8
MD5SUM=c383bdac66e9d48fe7f3e84e2b7d84d1
# git-describe-remote.awk ${SRC_URL%/archive/*} ; return 1
PKGVER=3.4.1_19_g02ad340 # 2020-05-30

TARBALL=$pkgname-$hash.tar.gz
SRC_URL=https://github.com/Cairo-Dock/cairo-dock-plug-ins/archive/$hash.tar.gz

#Required: cairo librsvg-2.0 dbus-1 dbus-glib-1 libxml-2.0 glib-2.0 gldi # = cairo-dock-core, with the same version!
#Highly Recommended: libalsa libetpan libgnome-menu3 gio-2.0 libxklavier xrandr x11 xxf86vm gvfs upower-glib zeitgeist-1.0 libexif vte(-2.90) lm_sensors ; 'python', 'curl' and 'wget' packages ; dbusmenu-glib(-0.4) dbusmenu-gtk(3)(-0.4)
#Suggested: indicator(3)-0.4 libido(3)-0.1 libical libpulse webkitgtk-3.0 (or webkit-1.0) ; these daemons: indicator-messages and indicator-sound ; 'ruby' and 'valac' packages
#Optional: fftw3, mono: glib-sharp-2.0 ndesk-dbus-1.0 ndesk-dbus-glib-1.0
SLACKREQ='gtk3 cairo-dock-core libetpan libexif libvte curl wget python python3 lm_sensors'
SLACKSUG='compton'

SLACKDESC="$pkgname: $pkgname $PKGVER (eye-candy dock)
$pkgname: Cairo-Dock plugins.
$pkgname:
$pkgname:
$pkgname:
$pkgname: License: GNU GPL v3
$pkgname:
$pkgname: https://www.glx-dock.org/
$pkgname: https://github.com/Cairo-Dock/cairo-dock-core
$pkgname:
$pkgname:
"

### default pkg_download
### pkg_prepare
pkg_prepare() {
	if ! [ "$PKGVER" ]; then
		printf "git-describe-remote: set: PKGVER="
		git-describe-remote.awk ${SRC_URL%/archive/*}
		return 1
	fi
	pkg_prepare_default &&
		cd tmp/$repo-* || return 1
}

### default pkg_package

### build
pkg_build() {
	cd /tmp/$repo-* || return 1
		mkdir build/ &&
		cd build/ &&
		cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DFORCE_LIB64=yes &&
		make -j $(grep -c ^processor /proc/cpuinfo) &&
		make install &&
		pkg_build_slackdesc
}

# vim:ft=sh:

