1 # Contributor: Karro <karolina.lindqvist@kramnet.se>
5 pkgdesc="Platform-independent graphics library"
7 url="http://www.tecgraf.puc-rio.br/cd/"
8 depends=(ftgl libim pdflib-lite gtk2 libxmu)
12 "http://downloads.sourceforge.net/project/canvasdraw/${pkgver}/Docs%20and%20Sources/cd-${pkgver}_Sources.tar.gz"
13 "http://downloads.sourceforge.net/project/canvasdraw/${pkgver}/Docs%20and%20Sources/cd-${pkgver}_Docs.pdf"
14 cdluaim5.patch makfiles.patch LICENSE
20 patch -p0 <../../cdluaim5.patch || return 1
21 patch -p0 <../../makfiles.patch || return 1
22 make -C src cd cdpdf cdx11 cdgdk cdgl cdlua5 cdluapdf5 cdluagl5 cdluaim5 || return 1
23 install -m755 -d $pkgdir/usr/lib
24 install -m644 $srcdir/cd/lib/Linux26g4/* $pkgdir/usr/lib
25 install -m755 -d $pkgdir/usr/share/$pkgname
26 install -m644 $srcdir/cd-${pkgver}_Docs.pdf $pkgdir/usr/share/$pkgname
27 install -m755 -d $pkgdir/usr/include/cd
28 install -m644 $srcdir/cd/include/* $pkgdir/usr/include/cd
29 install -m755 -d $startdir/pkg/usr/share/licenses/$pkgname
30 install -m644 $startdir/LICENSE $pkgdir/usr/share/licenses/$pkgname
32 md5sums=('05835f1d7bded5f67a9368aea6a6b9a5'
33 '6c485f32aca702fbec7165f44b25d174'
34 'ed8a4b981b24f38d82efd8aa5b3dea87'
35 '17bfa93bd755719f921efdd803295459')
36 md5sums=('05835f1d7bded5f67a9368aea6a6b9a5'
37 '6c485f32aca702fbec7165f44b25d174'
38 'ed8a4b981b24f38d82efd8aa5b3dea87'
39 '17bfa93bd755719f921efdd803295459'
40 '3b326faf9f9ab35096453525b55bd8c8')