7 pkgdesc="C platform-independent graphics library."
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')
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')
22 [ "$CARCH" == "i686" ] && md5sums=('98e93ea2fdcc6cfa23dcb8182eb2419b' 'e73a2a7e8f737f4d0801bd368e2e1121')
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