summaryrefslogtreecommitdiff
path: root/extra/xchm/PKGBUILD
blob: 809e0ed056f55d7b0f5c0bbbb76b41380d2db7f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 108735 2011-02-02 18:31:26Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgname=xchm
pkgver=1.18
pkgrel=1
pkgdesc="A cross-platform GUI front-end to chmlib"
arch=('i686' 'x86_64')
url="http://xchm.sourceforge.net"
license=('GPL')
depends=('chmlib' 'wxgtk' 'desktop-file-utils')
install=xchm.install
source=(http://downloads.sourceforge.net/sourceforge/xchm/${pkgname}-${pkgver}.tar.gz
        xchm.desktop
        xchm.xml)
md5sums=('07d7a910b3216301a002be5630c71866'
         '31fb9692b9ee9f2a205f58b9ff4bc4fe'
         '4102b0a393f5c60236143cc034664dd0')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
  ./configure --prefix=/usr
  make || return 1
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR=${pkgdir} install || return 1
  install -D -m644 ${srcdir}/xchm.desktop "${pkgdir}/usr/share/applications/xchm.desktop" || return 1
  install -D -m644 ${srcdir}/xchm.xml "${pkgdir}/usr/share/mime/packages/xchm.xml" || return 1
}