mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 10:44:37 +08:00
42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
pkgname=shared-mime-info
|
|
pkgver=1.9
|
|
pkgrel=2
|
|
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=(https://freedesktop.org/~hadess/${pkgname}-${pkgver}.tar.xz
|
|
update-mime-database.hook)
|
|
sha256sums=('5c0133ec4e228e41bdf52f726d271a2d821499c2ab97afd3aa3d6cf43efcdc83'
|
|
'7ecdd55ff7c4331e188cf46debbcc5660edb0e2bbeb4dd87cc5b87278c292821')
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|