[arch-multilib] libgtkhtml PKGBUILD
Harvey
harv at gmx.de
Sat Sep 4 17:45:23 EDT 2010
Hello all,
I am trying to run a 32 bit accounting and tax software for germany. It
needs libgtkhtml to display its helpfiles. So I tried a PKGBUILD
_pkgbasename=libgtkhtml
pkgname=lib32-$_pkgbasename
pkgver=2.11.1
pkgrel=1
pkgdesc="An HTML library for GTK"
arch=('x86_64')
license=('LGPL')
depends=('lib32-gtk2>=2.14.4' 'lib32-libxml2>=2.6.32' $_pkgbasename)
makedepends=(gcc-multilib 'perlxml' 'pkgconfig')
options=('!libtool')
url="http://www.gnome.org"
source=(http://ftp.gnome.org/pub/gnome/sources/${_pkgbasename}/2.11/${_pkgbasename}-${pkgver}.tar.bz2)
md5sums=('a1d1a197dcff8c4571659deef5495e24')
build() {
cd ${srcdir}/${_pkgbasename}-${pkgver}
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
CFLAGS=${CFLAGS/-march=$CARCH} ./configure --prefix=/usr
--sysconfdir=/etc \
--localstatedir=/var --disable-static --libdir=/usr/lib32
make
}
package() {
cd ${srcdir}/${_pkgbasename}-${pkgver}
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{include,share,bin}
mkdir -p "$pkgdir/usr/share/licenses"
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}
It builds and my app loads its html helpfiles now ;-) But just to be
sure could someone have a look over my PKGBUILD to see if I did
something nasty?
Harvey
--
Linux is like a wigwam: No Gates, no Windows and an Apache inside
More information about the arch-multilib
mailing list