Skip to content
Permalink
b7ef5b9c45
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 73 lines (57 sloc) 2.04 KB
#!/bin/env beesh
# BEE_VERSION xpdf-4.05-0
# http://www.xpdfreader.com/download.html
#SRCURL[0]="https://dl.xpdfreader.com/xpdf-${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/407ecab22f269c85914a9dc1d0fcbefe/xpdf-4.05.tar.gz"
# PATCHURL+=()
# build_in_sourcedir
# sourcesubdir_append src
#mee_extract() {
# bee_extract "${@}"
#}
#mee_patch() {
# bee_patch "${@}"
#}
mee_configure() {
bee_configure \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_COLOR_MAKEFILE=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_PREFIX_PATH=/usr/local/qt5 \
-DOPI_SUPPORT=ON \
-DA4_PAPER=ON
}
#mee_build() {
# bee_build
#}
mee_build_post() {
# create menu entry
cat >${B}/xpdf.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=xPDF
Comment=View multi-page documents
Exec=xpdf %u
Icon=xpdf
Terminal=false
Type=Application
MimeType=application/vnd.comicbook-rar;application/vnd.comicbook+zip;application/x-cb7;application/x-cbr;application/x-cbt;application/x-cbz;application/x-ext-cb7;application/x-ext-cbr;application/x-ext-cbt;application/x-ext-cbz;application/pdf;application/x-bzpdf;application/x-ext-pdf;application/x-gzpdf;application/x-xzpdf;image/tiff;
StartupNotify=true
Categories=GNOME;GTK;Office;Viewer;Graphics;2DGraphics;VectorGraphics;
EOF
}
#mee_install() {
# bee_install
#}
mee_install_post() {
# avoid conflicts with poppler. prefix all xpdf files with 'x'
for b in pdfdetach pdffonts pdfimages pdfinfo pdftohtml pdftopng pdftoppm pdftops pdftotext; do
mv -v ${D}${BINDIR}/${b} ${D}${BINDIR}/x${b}
mv -v ${D}${MANDIR}/man1/${b}.1 ${D}${MANDIR}/man1/x${b}.1
perl -pi -e 's/(pdfdetach|pdffonts|pdfimages|pdfinfo|pdftoppm|pdftops|pdftotext|pdftohtml|pdftopng)/x$1/g' ${D}${MANDIR}/man1/x${b}.1
done
start_cmd mkdir -p ${D}${DATADIR}/{applications,icons/hicolor/scalable/apps/}
start_cmd desktop-file-install --dir ${D}${DATADIR}/applications ${B}/xpdf.desktop
start_cmd cp ${S}/xpdf-qt/xpdf-icon.svg ${D}${DATADIR}/icons/hicolor/scalable/apps/xpdf.svg
}