summaryrefslogtreecommitdiff
path: root/community/xchm/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/xchm/PKGBUILD')
-rw-r--r--community/xchm/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/xchm/PKGBUILD b/community/xchm/PKGBUILD
new file mode 100644
index 000000000..03e29537a
--- /dev/null
+++ b/community/xchm/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 102193 2013-12-06 12:52:51Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+
+pkgname=xchm
+pkgver=1.23
+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=('486d029bd81071a2d04e7181909b1602'
+ '31fb9692b9ee9f2a205f58b9ff4bc4fe'
+ '4102b0a393f5c60236143cc034664dd0')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ export CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
+ ./configure --prefix=/usr
+ 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"
+}