0
0
Fork 0
haikuports/x11-misc/shared_mime_info/shared_mime_info-1.15.recipe

61 lines
1.6 KiB
Bash

SUMMARY="Freedesktop MIME database specification"
DESCRIPTION="The shared-mime-info package contains the core database \
of common types and the update-mime-database command used to extend it. \
It requires glib2 to be installed for building the update command. \
Additionally, it uses intltool for translations, though this is only a \
dependency for the maintainers."
HOMEPAGE="http://freedesktop.org/wiki/Software/shared-mime-info"
COPYRIGHT="2009-2019 Freedesktop.org"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/b27eb88e4155d8fccb8bb3cd12025d5b/shared-mime-info-$portVersion.tar.xz"
CHECKSUM_SHA256="f482b027437c99e53b81037a9843fccd549243fd52145d016e9c7174a4f5db90"
SOURCE_DIR="shared-mime-info-$portVersion"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
shared_mime_info$secondaryArchSuffix = $portVersion
cmd:update_mime_database$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libglib_2.0$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:awk
cmd:find
cmd:g++$secondaryArchSuffix
cmd:intltool_update
cmd:itstool
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:xmllint
"
BUILD()
{
autoreconf -vfi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm -rf $dataDir/mime/mime.cache
fixPkgconfig
}