# $Id: PKGBUILD 103807 2014-01-11 20:08:41Z eric $ # Maintainer: Giovanni Scafora pkgname=xchm pkgver=1.23 pkgrel=2 pkgdesc="A cross-platform GUI front-end to chmlib" arch=('i686' 'x86_64' 'mips64el') url="http://xchm.sourceforge.net/" license=('GPL') depends=('chmlib' 'wxgtk2.8' 'desktop-file-utils') install=xchm.install source=("http://downloads.sourceforge.net/sourceforge/xchm/${pkgname}-${pkgver}.tar.gz" 'xchm.desktop' 'xchm.xml') md5sums=('486d029bd81071a2d04e7181909b1602' '31fb9692b9ee9f2a205f58b9ff4bc4fe' '4102b0a393f5c60236143cc034664dd0') build() { cd "${srcdir}/${pkgname}-${pkgver}" export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" #export WX_CONFIG_PATH=/usr/bin/wx-config-2.8 ./configure --prefix=/usr --with-wx-config=wx-config-2.8 \ --build=$CHOST \ --host=$CHOST make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR=${pkgdir} install install -D -m644 ${srcdir}/xchm.desktop "${pkgdir}/usr/share/applications/xchm.desktop" install -D -m644 ${srcdir}/xchm.xml "${pkgdir}/usr/share/mime/packages/xchm.xml" }