# $Id: PKGBUILD 160047 2012-05-28 14:14:28Z andyrtr $ # Maintainer: Jan de Groot pkgname=xdg-utils pkgver=1.1.0 _gitdate=20120520 pkgrel=2.${_gitdate} pkgdesc="Command line tools that assist applications with a variety of desktop integration tasks" arch=('any') url="http://portland.freedesktop.org/" license=('MIT') depends=('sh' 'xorg-xset') # xset needed inside xdg-screensaver makedepends=('docbook-xsl' 'lynx' 'xmlto') optdepends=('kdebase-runtime: for KDE support in xdg-open' 'libgnome: for GNOME support in xdg-open' 'exo: for Xfce support in xdg-open' 'xorg-xprop: for Xfce support in xdg-open' 'pcmanfm: for LXDE support in xdg-open' 'perl-file-mimeinfo: for generic support in xdg-open') source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.${_gitdate}.tar.gz # last git commit 2012-03-10 13:55:24 (GMT) allow DESKTOP_SESSION='Xfce Session' to match xfce ) md5sums=('4e37d65322dbc4763e85b8ba461f919b') build() { cd ${srcdir}/${pkgname}-5be359a49d4d8dc3c5f814ab89b8422ad522d837 ./configure --prefix=/usr --mandir=/usr/share/man make scripts-clean -C scripts # needed if it's a git snapshot make man scripts -C scripts # needed if it's a git snapshot # make # for release builds } package() { cd ${srcdir}/${pkgname}-5be359a49d4d8dc3c5f814ab89b8422ad522d837 make DESTDIR="${pkgdir}" install install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }