updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / ksquirrel-libs / PKGBUILD
blob472d5a18c82acf4c0fab9dd2305ccc0bd824ede8
1 # Contributor: Ronald van Haren <ronald.archlinux.org>
2  
3  pkgname=ksquirrel-libs
4  pkgver=0.8.0
5  pkgrel=3
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')
11  options=(!libtool)
12  arch=('i686' 'x86_64')
13  md5sums=('a34ba56739d0c878fb888a834512b2cf' '724945fa457883382f6eb5a67d88db20'
14          '5bd521d60baf8e49f3964ccc55795833')
16  build() {
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
24  make || return 1
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
34  }