haiku_userguide: Force CSS files to have the correct mimetype.

This commit is contained in:
Augustin Cavalier
2022-12-16 16:02:08 -05:00
parent cea2f4b716
commit f01281cf88
2 changed files with 8 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ efficiently under Haiku."
HOMEPAGE="https://www.haiku-os.org/"
COPYRIGHT="2001-2022 Haiku, Inc. et al"
LICENSE="MIT"
REVISION="1"
REVISION="2"
srcGitRev="61f825e393d4107ee858c71990680596b1aefe8b"
SOURCE_URI="https://github.com/haiku/userguide/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="edb2fcdd6a53723137a3ad3eddd7a4ec6adcdb415367b48a746952c5a404d1da"
@@ -66,6 +66,9 @@ INSTALL()
mkdir -p $docsDir
cp -R userguide $docsDir
# workaround for incorrect sniffing
settype -t "text/css" $docsDir/userguide/*.css
for i in "${!LANGUAGES[@]}"; do
language=${LANGUAGES[i]}
languageLower=$(echo "${language}" | tr '[:upper:]' '[:lower:]')

View File

@@ -11,7 +11,7 @@ Thanks to everyone who contributed."
HOMEPAGE="https://www.haiku-os.org/"
COPYRIGHT="2001-2022 Haiku, Inc. et al"
LICENSE="MIT"
REVISION="1"
REVISION="2"
srcGitRev="61f825e393d4107ee858c71990680596b1aefe8b"
SOURCE_URI="https://github.com/haiku/userguide/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="edb2fcdd6a53723137a3ad3eddd7a4ec6adcdb415367b48a746952c5a404d1da"
@@ -32,4 +32,7 @@ INSTALL()
docsDir=$prefix/documentation
mkdir -p $docsDir
cp -R welcome $docsDir
# workaround for incorrect sniffing
settype -t "text/css" $docsDir/welcome/*.css
}