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

# BLFS 11.3
TARBALL=xdg-utils-$PKGVER.tar.gz
MD5SUM=902042508b626027a3709d105f0b63ff
SRC_URL=https://portland.freedesktop.org/download/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="xdg-utils: xdg-utils $PKGVER (Command line utilities for XDG)  
xdg-utils:  
xdg-utils: xdg-utils is a a set of command line tools that assist applications 
xdg-utils: with a variety of desktop integration tasks. It is required for 
xdg-utils: Linux Standards Base (LSB) conformance.  
xdg-utils: 
xdg-utils: 
xdg-utils: 
xdg-utils: 
xdg-utils: 
xdg-utils:  
"

### default pkg_download
### preare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/xdg-utils* &&
	patch -Np1 -i ../pkg/xdg-open-inode-symlink.patch
}

### default pkg_package
### build
pkg_build() {
	ln -s /bin/true /usr/bin/lynx && # pretend it exists
	
	CONFFLAGS="$CONFFLAGS --mandir=/usr/share/man" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	rm -f /usr/bin/lynx &&

	# install html docs
	install -dm755 /usr/share/doc/xdg-utils-$PKGVER/html &&
	install -m644 scripts/html/* /usr/share/doc/xdg-utils-$PKGVER/html &&
	true
}


