#Packager: Dimitris Tzemos <dijemos~at~gmail~dot~com>

pkgname=xdg-utils
pkgver=1.1.3
pkgrel=1dj
arch=noarch
source=("https://portland.freedesktop.org/download/xdg-utils-$pkgver.tar.gz" "xdg-open_midori.patch")
sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname
docs=("LICENSE" "README" "RELEASE_NOTES" "TODO")
url=http://portland.freedesktop.org/wiki/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"xdg-utils (command line tools that assist applications)"
"Xdg-utils is a set of command line tools that assist applications"
"with a variety of desktop integration tasks.  About half of the"
"tools focus on tasks commonly required during the installation of"
"a desktop application and the other half focuses on integration"
"with the desktop environment while the application is running."
""
"Homepage:  http://portland.freedesktop.org/wiki/"
)

build() {
cd $SRC/$pkgname-$pkgver
# patch to add midori to the list of web browsers
patch -p1 --verbose < $SRC/xdg-open_midori.patch || exit 1

	./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  || exit 1

make -j $numjobs || make || exit 1
make install DESTDIR=$PKG || exit 1
}
