added mingw-w64-{evince,geany}
This commit is contained in:
parent
c3b7a4cde4
commit
550f719cd9
|
@ -0,0 +1,10 @@
|
|||
--- evince-3.18.0/backend/pdf/ev-poppler.cc.orig 2015-09-25 12:25:31.343557800 +0300
|
||||
+++ evince-3.18.0/backend/pdf/ev-poppler.cc 2015-09-25 12:25:48.411850800 +0300
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
+#include <unistd.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <poppler.h>
|
||||
#include <poppler-document.h>
|
|
@ -0,0 +1,76 @@
|
|||
_name=evince
|
||||
pkgname=mingw-w64-evince
|
||||
pkgver=3.18.2
|
||||
pkgrel=1
|
||||
pkgdesc="Document viewer (build with PDF support only, mingw-w64)"
|
||||
url="https://wiki.gnome.org/Apps/Evince"
|
||||
arch=('any')
|
||||
license=('GPL')
|
||||
depends=('mingw-w64-crt' 'mingw-w64-gtk3' 'mingw-w64-poppler' 'mingw-w64-libxml2')
|
||||
makedepends=('itstool' 'intltool' 'mingw-w64-gcc' 'mingw-w64-configure' 'mingw-w64-binutils')
|
||||
install=
|
||||
source=(http://ftp.gnome.org/pub/gnome/sources/${_name}/${pkgver:0:4}/${_name}-$pkgver.tar.xz
|
||||
0002-missing-include.patch)
|
||||
sha256sums=('42ad6c7354d881a9ecab136ea84ff867acb942605bcfac48b6c12e1c2d8ecb17'
|
||||
'd2850c4bdfa87fa56bae2674d2c798f9181bfb3f19319fbc9966672caae48237')
|
||||
options=(!buildflags staticlibs !strip !emptydirs)
|
||||
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_name}-${pkgver}"
|
||||
patch -p1 -i "${srcdir}/0002-missing-include.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_name}-${pkgver}"
|
||||
|
||||
for _arch in ${_architectures}; do
|
||||
mkdir "build-${_arch}"
|
||||
pushd "build-${_arch}"
|
||||
${_arch}-configure \
|
||||
--exec-prefix=/usr/${_arch} \
|
||||
--sysconfdir=/etc \
|
||||
--prefix=/usr/${_arch} \
|
||||
--localstatedir=/var \
|
||||
--with-platform=win32 \
|
||||
--disable-debug \
|
||||
--disable-maintainer-mode \
|
||||
--disable-schemas-compile \
|
||||
--enable-viewer \
|
||||
--disable-previewer \
|
||||
--disable-thumbnailer \
|
||||
--enable-pdf \
|
||||
--disable-ps \
|
||||
--disable-djvu \
|
||||
--disable-dvi \
|
||||
--disable-xps \
|
||||
--disable-comics \
|
||||
--enable-t1lib \
|
||||
--enable-tiff \
|
||||
--disable-nautilus \
|
||||
--disable-browser-plugin \
|
||||
--disable-gtk-doc \
|
||||
--disable-introspection \
|
||||
--disable-dbus \
|
||||
--without-keyring \
|
||||
--without-gtk-unix-print \
|
||||
--disable-libgnome-desktop
|
||||
make
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_name}-${pkgver}"
|
||||
for _arch in ${_architectures}; do
|
||||
pushd "build-${_arch}"
|
||||
alias strip=${_arch}-strip
|
||||
make DESTDIR="${pkgdir}" install
|
||||
${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/"*.a
|
||||
${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/${_name}/4/backends/"*.a
|
||||
${_arch}-strip --strip-unneeded "${pkgdir}/usr/${_arch}/lib/${_name}/4/backends/"*.dll
|
||||
${_arch}-strip --strip-all "${pkgdir}/usr/${_arch}/bin/"*.exe
|
||||
${_arch}-strip --strip-unneeded "${pkgdir}/usr/${_arch}/bin/"*.dll
|
||||
popd
|
||||
done
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
# $Id: PKGBUILD 151494 2015-12-10 03:54:41Z foutrelis $
|
||||
# Contributor: Alexander Rødseth <rodseth@gmail.com>
|
||||
# Contributor: Angel Velasquez <angvp@archlinux.org>
|
||||
# Contributor: Ionut Biru <ibiru@archlinux.ro>
|
||||
# Contributor: William Rea <sillywilly@gmail.com>
|
||||
# Contributor: Allan McRae <mcrae_allan@hotmail.com>
|
||||
|
||||
_name=geany
|
||||
pkgname=mingw-w64-geany
|
||||
pkgver=1.26
|
||||
pkgrel=1
|
||||
pkgdesc='Fast and lightweight IDE'
|
||||
arch=('any')
|
||||
url='http://www.geany.org/'
|
||||
license=('GPL')
|
||||
depends=('mingw-w64-crt' 'mingw-w64-gtk2')
|
||||
makedepends=('perl-xml-parser' 'setconf' 'intltool' 'mingw-w64-gcc' 'mingw-w64-configure' 'mingw-w64-binutils')
|
||||
optdepends=('mingw-w64-geany-plugins: various extra features'
|
||||
'mingw-w64-python2')
|
||||
source=("http://download.geany.org/${_name}-$pkgver.tar.bz2")
|
||||
sha256sums=('e38530e87c577e1e9806be3b40e08fb9ee321eb1abc6361ddacdad89c825f90d')
|
||||
options=(!buildflags staticlibs !strip !emptydirs)
|
||||
|
||||
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
||||
|
||||
prepare() {
|
||||
cd "${_name}-$pkgver"
|
||||
|
||||
# Python2 fix
|
||||
sed -i '0,/on/s//on2/' data/templates/files/main.py
|
||||
|
||||
# Syntax highlighting for PKGBUILD files
|
||||
sed -i 's/Sh=/Sh=PKGBUILD;/' data/filetype_extensions.conf
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${_name}-$pkgver"
|
||||
for _arch in ${_architectures}; do
|
||||
mkdir -p "build-${_arch}"
|
||||
pushd "build-${_arch}"
|
||||
${_arch}-configure \
|
||||
--exec-prefix=/usr/${_arch} \
|
||||
--sysconfdir=/etc \
|
||||
--prefix=/usr/${_arch}
|
||||
make
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${_name}-$pkgver"
|
||||
for _arch in ${_architectures}; do
|
||||
pushd "build-${_arch}"
|
||||
make DESTDIR="$pkgdir" install
|
||||
${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/"*.a
|
||||
${_arch}-strip -g "${pkgdir}/usr/${_arch}/lib/geany/"*.a
|
||||
${_arch}-strip --strip-unneeded "${pkgdir}/usr/${_arch}/lib/geany/"*.dll
|
||||
${_arch}-strip --strip-all "${pkgdir}/usr/${_arch}/bin/"*.exe
|
||||
${_arch}-strip --strip-unneeded "${pkgdir}/usr/${_arch}/bin/"*.dll
|
||||
rm "${pkgdir}/usr/${_arch}/"*.txt
|
||||
popd
|
||||
done
|
||||
}
|
||||
|
||||
# getver: -u 7 geany.org/Documentation/ReleaseNotes
|
||||
# vim:set ts=2 sw=2 et:
|
|
@ -65,4 +65,7 @@ OTHER_FILES += \
|
|||
freetype2/mingw-w64-bootstrap/0001-Enable-table-validation-modules.patch \
|
||||
freetype2/mingw-w64-bootstrap/0002-Enable-subpixel-rendering.patch \
|
||||
freetype2/mingw-w64-bootstrap/0003-Enable-subpixel-hinting.patch \
|
||||
freetype2/mingw-w64-bootstrap/0004-Mask-subpixel-hinting-with-an-env-var.patch
|
||||
freetype2/mingw-w64-bootstrap/0004-Mask-subpixel-hinting-with-an-env-var.patch \
|
||||
evince/mingw-w64/PKGBUILD \
|
||||
evince/mingw-w64/0002-missing-include.patch \
|
||||
geany/mingw-w64/PKGBUILD
|
||||
|
|
Loading…
Reference in New Issue