# Maintainer: Lex Black # Contributor: matthewbauer # Contributor: Jan de Groot # Contributor: cantabile _pkgname=xdg-utils pkgname=$_pkgname-mimeo pkgver=1.1.2 pkgrel=2 pkgdesc="Command line tools that assist applications with a variety of desktop integration tasks; patched to use mimeo" arch=('any') url="https://www.freedesktop.org/wiki/Software/xdg-utils/" license=('MIT') depends=('sh' 'xorg-xset') # xset needed inside xdg-screensaver makedepends=('docbook-xsl' 'lynx' 'xmlto' 'git') optdepends=('kde-cli-tools: for KDE Plasma5 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' 'mimeo: for mimeo support in xdg-open' 'perl-file-mimeinfo: for generic support in xdg-open' 'perl-net-dbus: Perl extension to dbus used in xdg-screensaver' 'perl-x11-protocol: Perl X11 protocol used in xdg-screensaver') provides=($_pkgname) conflicts=($_pkgname) source=(https://portland.freedesktop.org/download/$_pkgname-$pkgver.tar.gz #{,.asc} lxqt.patch mimeo-detection.patch) sha1sums=('20cd4cc5cfaa904b12abf6d584deb568367f4d83' 'a8b5435d4ee217512a455d099344bdc2dc80da94' '47f7127d594427006fcee51a5da90f135269859b') #validpgpkeys=('8B75CA7811367175D05F3B03C43570F80CC295E6') # "Per Olofsson " prepare() { cd $_pkgname-$pkgver # lxde and lxqt are different patch -Np1 -i ../lxqt.patch patch -p1 -i "${srcdir}"/mimeo-detection.patch } build() { cd $_pkgname-$pkgver ./configure --prefix=/usr --mandir=/usr/share/man make } package() { cd $_pkgname-$pkgver make DESTDIR="${pkgdir}" install install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" # install empty directory to prevent xdg-desktop-menu install *.desktop to fail, see FS#33316 install -dm755 $pkgdir/usr/share/desktop-directories }