2021-01-31 22:00:07 +11:00
|
|
|
# Description: Core database of common types
|
|
|
|
# URL: https://freedesktop.org/Software/shared-mime-info
|
2017-10-13 20:09:23 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-01-31 22:00:07 +11:00
|
|
|
# Depends on: glib libxml2 itstool
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=shared-mime-info
|
2021-01-31 22:00:07 +11:00
|
|
|
version=2.1
|
2006-02-23 15:26:10 +00:00
|
|
|
release=1
|
2021-01-31 22:00:07 +11:00
|
|
|
_xdgmimever=cecafc8cd5cd725444b914d5f6cd17308633afa8
|
|
|
|
source=(https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/$version/$name-$version.tar.bz2
|
|
|
|
https://gitlab.freedesktop.org/xdg/xdgmime/-/archive/$_xdgmimever/xdgmime-$_xdgmimever.tar.bz2
|
|
|
|
remove-weird-docs.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2021-01-31 22:00:07 +11:00
|
|
|
# Build mime database
|
|
|
|
sed -e "s|^CFLAGS=-Wall -Wmissing-prototypes -Wno-sign-compare -g |CFLAGS=$CFLAGS |" \
|
|
|
|
-i xdgmime-$_xdgmimever/src/Makefile
|
|
|
|
make -C xdgmime-$_xdgmimever
|
2007-04-21 11:29:46 +02:00
|
|
|
|
2021-01-31 22:00:07 +11:00
|
|
|
# We don't want to include fancy docs
|
|
|
|
# Deletes references to xmllint and xmlto
|
|
|
|
patch -Np1 -d $name-$version -i $SRC/remove-weird-docs.patch
|
2017-10-13 20:09:23 +11:00
|
|
|
|
2021-01-31 22:00:07 +11:00
|
|
|
meson $name-$version build \
|
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
|
|
|
-D update-mimedb=false \
|
|
|
|
-D xdgmime-path=$SRC/xdgmime-$_xdgmimever
|
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2016-01-20 20:58:34 +00:00
|
|
|
|
2021-01-31 22:00:07 +11:00
|
|
|
# Builds the initial database
|
|
|
|
/usr/bin/env PKGSYSTEM_ENABLE_FSYNC=0 $PKG/usr/bin/update-mime-database $PKG/usr/share/mime
|
2008-10-03 13:53:40 +02:00
|
|
|
|
2017-10-13 20:09:23 +11:00
|
|
|
rm -r $PKG/usr/share/locale
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|