updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / cd / PKGBUILD
bloba4ca5bf6fcdbb4923b1974558a6950623c0b18f3
1 # Contributor: maoserr
2 # Maintainer: markelos
4 pkgname=cd
5 pkgver=5.4.1
6 pkgrel=1
7 pkgdesc="C platform-independent graphics library."
8 arch=('i686' 'x86_64')
9 url="http://www.tecgraf.puc-rio.br/cd/"
10 license=('MIT' 'custom')
11 depends=('libxft' 'libxmu' 'freetype2')
12 optdepends=('lua: bindings for Lua are available'
13             'iup: cross platform GUI toolkit'
14             'im: for advanced imaging support'
15             'mesa: for OpenGL support')
16 provides=('cd')
17 conflicts=('cd')
18 source=("http://downloads.sourceforge.net/project/canvasdraw/${pkgver}/Linux%20Libraries/cd-${pkgver}_Linux26_lib.tar.gz" "LICENSE")
20 [ "$CARCH" == "x86_64" ] && source=("http://downloads.sourceforge.net/project/canvasdraw/${pkgver}/Linux%20Libraries/cd-${pkgver}_Linux26_64_lib.tar.gz" "LICENSE") && md5sums=('fd2a5c03138a35a3485032fa82517426' 'e73a2a7e8f737f4d0801bd368e2e1121')
21         
22 [ "$CARCH" == "i686" ] && md5sums=('98e93ea2fdcc6cfa23dcb8182eb2419b' 'e73a2a7e8f737f4d0801bd368e2e1121')
24 build() 
26   mkdir -p $pkgdir/usr/{include,lib} 
27   install -m644 $srcdir/{libcd*.a,libpdflib.a} $pkgdir/usr/lib/ 
28   install -m755 $srcdir/{libcd*.so,libpdflib.so} $pkgdir/usr/lib/  
29   install $srcdir/include/* $pkgdir/usr/include/ 
30   install -D $startdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE