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

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

hash=1e49fdb2ab352ed31542fffa588386b9b6dccb98
MD5SUM=bee1164ca62fd1cf0d8d91a60ddfd3c7
# unset PKGVER and run pkg_prepare to have git-describe-remote discover the PKGVER value
PKGVER=3.4.1_19_g1e49fdb # 2020-06-23

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'
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:

