37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
# Description: Core database of common types
|
|
# URL: https://freedesktop.org/Software/shared-mime-info
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: glib libxml2 itstool
|
|
|
|
name=shared-mime-info
|
|
version=2.1
|
|
release=1
|
|
_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)
|
|
|
|
build() {
|
|
# 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
|
|
|
|
# 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
|
|
|
|
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
|
|
|
|
# Builds the initial database
|
|
/usr/bin/env PKGSYSTEM_ENABLE_FSYNC=0 $PKG/usr/bin/update-mime-database $PKG/usr/share/mime
|
|
|
|
rm -r $PKG/usr/share/locale
|
|
}
|