1 # Contributor: Ronald van Haren <ronald.archlinux.org>
6 pkgdesc="A set of image codecs for ksquirrel"
7 url="http://ksquirrel.sourceforge.net/"
8 license=('GPL2' 'LGPL' 'custom:jasper' 'custom:ljpeg' 'custom:mng' 'custom:png')
9 source=(http://downloads.sourceforge.net/ksquirrel/$pkgname-$pkgver.tar.bz2
10 'ksquirrel-libs-0.8.0-gcc43.patch' 'ksquirrel-libs-0.8.0-gcc44.patch')
12 arch=('i686' 'x86_64')
13 md5sums=('a34ba56739d0c878fb888a834512b2cf' '724945fa457883382f6eb5a67d88db20'
14 '5bd521d60baf8e49f3964ccc55795833')
17 cd ${srcdir}/${pkgname}-${pkgver}
19 # gcc43 & gcc44 build patches
20 patch -Np1 -i ${srcdir}/ksquirrel-libs-0.8.0-gcc43.patch || return 1
21 patch -Np1 -i ${srcdir}/ksquirrel-libs-0.8.0-gcc44.patch || return 1
23 ./configure --prefix=/opt/kde
25 make DESTDIR=${pkgdir} install || return 1
27 # install custom license files
28 install -Dm644 COPYING ${pkgdir}/usr/share/licenses/ksquirrel-libs/COPYING
29 install -Dm644 LICENSE.JASPER ${pkgdir}/usr/share/licenses/ksquirrel-libs/license.jasper
30 install -Dm644 LICENSE.LJPEG ${pkgdir}/usr/share/licenses/ksquirrel-libs/license.ljpeg
31 install -Dm644 LICENSE.MNG ${pkgdir}/usr/share/licenses/ksquirrel-libs/license.mng
32 install -Dm644 LICENSE.PNG ${pkgdir}/usr/share/licenses/ksquirrel-libs/license.png