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

# NOTE: pre-build rofi.rasi by running:
# rofi -font 'mono 11' -dump-config > rofi.rasi
# move it to the recipe directory and re-run build-pkg.sh

PKGVER=1.6.0 # + comprehensive patch up to 20200930 repo status
MD5SUM=8c6a36b39b588834b24db3b1da3222da
PKGBUILD=1
PKGARCH=x86_64

TARBALL=rofi-$PKGVER.tar.xz
SRC_URL=https://github.com/davatorium/rofi/releases/download/$PKGVER/$TARBALL
BUNDLE=

# see also long list at https://github.com/davatorium/rofi/blob/next/INSTALL.md#external-libraries
SLACKREQ='xcb-util-xrm'

SLACKDESC="rofi: rofi $PKGVER (window and menu tool)
rofi: rofi is an X11 pop-up window switcher, run dialog, dmenu replacement, and
rofi: more. It focuses on being fast to use with minimal distraction.  It supports
rofi: keyboard and mouse navigation, type to filter, tokenized search and more.
rofi:
rofi: License MIT.
rofi:
rofi: https://github.com/davatorium/rofi
rofi: https://reddit.com/r/qtools/
rofi:
rofi:
"
SLACKSUG=
SLACKINSTALL=
SLACKUNINSTALL=

# default pkg_download
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/rofi* &&
	patch -Np1 -i ../pkg/1.6.0...next-b4bbce4-20200930.patch
}
# default pkg_package

pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-check"
	cd tmp/rofi-* &&
	pkg_build_autoconf &&
	install -m 644 -Dt /usr/share/rofi ../pkg/rofi.rasi &&
	install -m 644 -Dt /install ../pkg/doinst.sh &&
	pkg_build_slackdesc
}

# vim:ft=sh:
