pkgname=shared-mime-info pkgver=1.9 pkgrel=1 pkgdesc="Freedesktop.org Shared MIME Info" arch=('x86_64') license=('GPL') depends=('libxml2' 'glib2') makedepends=('intltool' 'pkgconfig' 'gettext') install=shared-mime-info.install url="http://freedesktop.org/Software/shared-mime-info" source=(http://freedesktop.org/~hadess/${pkgname}-${pkgver}.tar.xz) md5sums=('45103889b91242850aa47f09325e798b') #options=(!makeflags) build() { cd "${srcdir}/${pkgname}-${pkgver}" # https://bugs.archlinux.org/task/38836 # https://bugs.freedesktop.org/show_bug.cgi?id=70366 export ac_cv_func_fdatasync=no ./configure --prefix=/usr --disable-update-mimedb # FIXME: fails with -j9 every second time like: # update_mime_database-update-mime-database.o: file not recognized: File truncated # FIXME build and check returns: # *** Some comments are not marked as translatable, fix before committing *** make -j1 | true } check() { cd "${srcdir}/${pkgname}-${pkgver}" make -k check | true } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }