This commit is contained in:
milisman 2016-04-29 19:24:07 +00:00
parent 5aa5deca39
commit 2c7b972c7f
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# Description: A free replacement for Motif
# URL: http://www.lesstif.org/
# Packager: milisarge
# Depends on: freetype xorg-libxt xorg-libxext
name=lesstif
version=0.95.2
release=1
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2)
build() {
cd $name-$version
./configure \
--prefix=/usr \
--enable-nonstandard-conversions \
--disable-debug \
--with-editres \
--with-xdnd \
--mandir=/usr/man
make
make DESTDIR=$PKG install
# remove xprint stuff
rm $PKG/usr/include/Xm/Print{SP,}.h
sed -i -e 's/.*Print.h.*//' $PKG/usr/include/Xm/XmAll.h
rm -rf $PKG/usr/LessTif $PKG/usr/lib/X11/ \
$PKG/usr/man/man{1/mwm.1,5/mwmrc.5}
}

View File

@ -0,0 +1,31 @@
# Description: PDF viewer
# URL: http://foolabs.com/xpdf
# Packager: milisarge
# Depends on: lesstif
name=xpdf
version=3.04
release=1
source=(ftp://ftp.foolabs.com/pub/xpdf/$name-$version.tar.gz)
build() {
cd $name-$version
sed -i 's/\(s = XmStringCreateLocalized(\)/\1(char *)/g' xpdf/XPDFViewer.cc
./configure \
--prefix=/usr \
--with-Xm-library=/usr/lib \
--with-Xm-includes=/usr/include/Xm \
--with-freetype2-includes=/usr/include/freetype2 \
--sysconfdir=/etc \
--enable-a4-paper \
--enable-opi \
--with-t1-library=no \
--mandir=/usr/man
make
make install DESTDIR=$PKG
find $PKG/usr/bin $PKG/usr/man/man1 -iname 'pdf*' -delete
}