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

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

hash=6c569e67a2a366e7634224a0133ede51755629cb
MD5SUM=a24138ab59a689b204a5e0da61a12af2
# unset PKGVER and run pkg_prepare to have git-describe-remote discover the PKGVER value
PKGVER=3.4.1_19_g6c569e6 # 2021-03-27

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

# Required gtk+-3.0 glib-2.0 gthread-2.0 cairo librsvg-2.0 dbus-1 dbus-glib-1 libxml-2.0 xrender gl glu libcurl xtst xcomposite xrandr
SLACKREQ='gtk3 libdbus-glib'
SLACKSUG='compton'

SLACKDESC="$pkgname: $pkgname $PKGVER (eye-candy dock)
$pkgname: Cairo-Dock is a desktop interface that takes the shape of docks, desklets,
$pkgname: panel, etc.
$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:

