### this file is sourced not run
PKGVER=2020.09
PKGBUILD=1
PKGARCH=noarch

### build a package out of ready-made directory
TARBALL= # none - internal copy
MD5SUM=  # none
SRC_URL= # none
BUNDLE=  # none

SLACKREQ='ffmpeg leafpad' # audio/video preview, hexdump view
SLACKSUG='wmctrl xclip xdotool'
SLACKDESC="mmview: mmview $PKGVER (Universal File Viewer)
mmview:
mmview: MochiMoppel's MMView is a folder-oriented file previewer that works with
mmview: many different file types. It can preview images, text, audio/video,
mmview: and many others.
mmview:
mmview: http://www.murga-linux.com/puppy/viewtopic.php?t=109573
mmview:
mmview: Note: binary name is called 'mm_view'.
mmview:
mmview:
"

# don't build, don't create package - we do it ourselves here
PKG_NOBUILD=yes
PKG_NOMAKEPKG=yes


###
pkg_download() {
	: nothing to download
}

###
pkg_prepare() {
	: nothing to prepare
}

### package ready-made directory
pkg_package() {
(	cd tmp/pkg &&
	patch -N "$(readlink -e usr/bin/mm_view)" force_gtkdialog_gtk2.patch &&
	rm -f *.patch
) &&
	pkg_package_dir
}

### build
pkg_build() {
	: nothing to build
}

# vim:ft=sh:

