Skip to content
Permalink
b86c11f5ba
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 42 lines (33 sloc) 925 Bytes
#!/bin/env beesh
# BEE_VERSION imagemagick-6.9.10p56-0
XPKGVERSION=$(echo ${PKGVERSION} | sed -e 's/p/-/')
SRCURL[0]="https://github.com/ImageMagick/ImageMagick6/archive/${XPKGVERSION}.tar.gz imagemagick-${XPKGVERSION}.tar.gz"
PATCHURL[0]=""
EXCLUDE="^/usr/share/doc"
mee_patch() {
bee_patch
}
mee_configure() {
bee_configure
}
mee_build() {
bee_build
}
mee_install() {
bee_install
}
mee_install_post() {
local tgt=${D}/etc/ImageMagick-6/policy.xml
cp -p -v ${tgt} ${tgt}.raw
xmllint --format ${tgt}.raw > ${tgt}
rm ${tgt}.raw
sed -i -e "/<\/policymap>/ d" ${tgt}
cat <<-XML >> ${tgt}
<!-- prevent GhostScript processing -->
<policy domain="coder" rights="none" pattern="PS" />
<policy domain="coder" rights="none" pattern="EPS" />
<policy domain="coder" rights="none" pattern="PDF" />
<policy domain="coder" rights="none" pattern="XPS" />
</policymap>
XML
}