### this file is sourced not run
PKGVER=0.1.8
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 11.3
TARBALL=epdfview-$PKGVER.tar.bz2
MD5SUM=e50285b01612169b2594fea375f53ae4
SRC_URL=https://anduin.linuxfromscratch.org/BLFS/epdfview/$TARBALL
BUNDLE=

SLACKREQ='gtk2 poppler'
SLACKDESC="epdfview: epdfview $PKGVER (Lightweight PDF Viewer)
epdfview: 
epdfview: ePDFView is a free standalone lightweight PDF document viewer using 
epdfview: Poppler and GTK+ libraries. It is a good replacement for Evince as it 
epdfview: does not rely upon GNOME libraries.
epdfview: 
epdfview: https://github.com/JotaRandom/epdfview
epdfview: 
epdfview: 
epdfview: 
epdfview: 
"
SLACKINSTALL="
#update-desktop-database &&
#gtk-update-icon-cache -t -f --include-image-data ./usr/share/icons/hicolor
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	
	cd tmp/epdfview* &&
	patch -Np1 -i ../pkg/epdfview-0.1.8-fixes-2.patch &&
	true
}

### default pkg_package
### build
pkg_build() {
	pkg_build_autoconf &&

	for size in 24 32 48; do
	  ln -svf ../../../../epdfview/pixmaps/icon_epdfview-$size.png \
			  /usr/share/icons/hicolor/${size}x${size}/apps
	done &&
	unset size &&

	pkg_build_slackdesc
}
