[arch-commits] Commit in shared-mime-info/repos (4 files)
Andreas Radke
andyrtr at archlinux.org
Sun Aug 5 17:24:07 UTC 2018
Date: Sunday, August 5, 2018 @ 17:24:07
Author: andyrtr
Revision: 330617
archrelease: copy trunk to testing-x86_64
Added:
shared-mime-info/repos/testing-x86_64/
shared-mime-info/repos/testing-x86_64/PKGBUILD
(from rev 330616, shared-mime-info/trunk/PKGBUILD)
shared-mime-info/repos/testing-x86_64/shared-mime-info.install
(from rev 330616, shared-mime-info/trunk/shared-mime-info.install)
shared-mime-info/repos/testing-x86_64/update-mime-database.hook
(from rev 330616, shared-mime-info/trunk/update-mime-database.hook)
---------------------------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
shared-mime-info.install | 7 +++++++
update-mime-database.hook | 11 +++++++++++
3 files changed, 58 insertions(+)
Copied: shared-mime-info/repos/testing-x86_64/PKGBUILD (from rev 330616, shared-mime-info/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-08-05 17:24:07 UTC (rev 330617)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=shared-mime-info
+pkgver=1.10
+pkgrel=1
+pkgdesc="Freedesktop.org Shared MIME Info"
+arch=('x86_64')
+license=('GPL2')
+depends=('libxml2' 'glib2')
+makedepends=('intltool' 'pkgconfig')
+install=shared-mime-info.install
+url="https://freedesktop.org/Software/shared-mime-info"
+source=(https://freedesktop.org/~hadess/${pkgname}-${pkgver}.tar.xz
+ update-mime-database.hook)
+sha256sums=('c625a83b4838befc8cafcd54e3619946515d9e44d63d61c4adf7f5513ddfbebf'
+ '7ecdd55ff7c4331e188cf46debbcc5660edb0e2bbeb4dd87cc5b87278c292821')
+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
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make -k check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 "$srcdir"/update-mime-database.hook "$pkgdir"/usr/share/libalpm/hooks/update-mime-database.hook
+}
Copied: shared-mime-info/repos/testing-x86_64/shared-mime-info.install (from rev 330616, shared-mime-info/trunk/shared-mime-info.install)
===================================================================
--- testing-x86_64/shared-mime-info.install (rev 0)
+++ testing-x86_64/shared-mime-info.install 2018-08-05 17:24:07 UTC (rev 330617)
@@ -0,0 +1,7 @@
+post_remove() {
+ if [ -d usr/share/mime ]; then
+ rm -f usr/share/mime/{globs,globs2,icons,treemagic,generic-icons,types,magic,XMLnamespaces,subclasses,aliases,mime.cache}
+ rm -rf usr/share/mime/{application,audio,image,inode,message,model,multipart,text,video,x-content,x-epoc}
+ rmdir --ignore-fail-on-non-empty usr/share/mime
+ fi
+}
Copied: shared-mime-info/repos/testing-x86_64/update-mime-database.hook (from rev 330616, shared-mime-info/trunk/update-mime-database.hook)
===================================================================
--- testing-x86_64/update-mime-database.hook (rev 0)
+++ testing-x86_64/update-mime-database.hook 2018-08-05 17:24:07 UTC (rev 330617)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/mime/packages/*.xml
+
+[Action]
+Description = Updating the MIME type database...
+When = PostTransaction
+Exec = /usr/bin/update-mime-database /usr/share/mime
More information about the arch-commits
mailing list