pango: Update to 1.36.7. Use post-install scripts.

This commit is contained in:
Alexpux
2014-09-05 14:30:23 +04:00
parent a6fc188b67
commit b418e22b91
3 changed files with 34 additions and 5 deletions

View File

@@ -1,12 +1,11 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=pango
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.36.6
pkgver=1.36.7
pkgrel=1
pkgdesc="A library for layout and rendering of text (mingw-w64)"
arch=(any)
arch=('any')
url="http://www.pango.org"
license=("LGPL")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
@@ -18,11 +17,12 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-cairo"
"${MINGW_PACKAGE_PREFIX}-glib2"
"${MINGW_PACKAGE_PREFIX}-harfbuzz")
options=('staticlibs' 'strip')
options=('staticlibs' 'strip' 'emptydirs')
install=${_realname}-${CARCH}.install
source=("http://ftp.gnome.org/pub/gnome/sources/pango/${pkgver:0:4}/pango-${pkgver}.tar.xz"
0001-no-unconditional-xft-please.all.patch
0002-msvc-is-impotent-but-not.mingw.patch)
sha256sums=('4c53c752823723875078b91340f32136aadb99e91c0f6483f024f978a02c8624'
sha256sums=('1f7b527423a1b3044fd9ae7fbe054107b06723ff1c73e0b5f7bf9b84358d404a'
'a673ce807b29abe4b0fedf5b17e154986d675cec3e001c4235067b01515c2e4d'
'240d21474157c0deabc2660593ac0414565ddf30c304b08b74a09072c910b34d')
@@ -54,5 +54,6 @@ build() {
package() {
cd "${srcdir}/build-${MINGW_CHOST}"
make DESTDIR="$pkgdir" install
install -m755 -d "${pkgdir}${MINGW_PREFIX}/etc/pango"
find "${pkgdir}${MINGW_PREFIX}" -name '*.def' -o -name '*.exp' | xargs -rtl1 rm
}

View File

@@ -0,0 +1,14 @@
post_install() {
mingw32/bin/pango-querymodules > mingw32/etc/pango/pango.modules
}
post_upgrade() {
if [ -f mingw32/etc/pango/pango.modules ]; then
rm mingw32/etc/pango/pango.modules
fi
post_install
}
pre_remove() {
rm mingw32/etc/pango/pango.modules
}

View File

@@ -0,0 +1,14 @@
post_install() {
mingw64/bin/pango-querymodules > mingw64/etc/pango/pango.modules
}
post_upgrade() {
if [ -f mingw64/etc/pango/pango.modules ]; then
rm mingw64/etc/pango/pango.modules
fi
post_install
}
pre_remove() {
rm mingw64/etc/pango/pango.modules
}