updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / libcd / PKGBUILD
blobe78d2c1deb0da851c0d16f81dd60f92d7dfd6697
1 # Contributor: Karro <karolina.lindqvist@kramnet.se>
2 pkgname=libcd
3 pkgver=5.4
4 pkgrel=1
5 pkgdesc="Platform-independent graphics library"
6 arch=(i686)
7 url="http://www.tecgraf.puc-rio.br/cd/"
8 depends=(ftgl libim pdflib-lite gtk2 libxmu)
9 makedepends=(lua)
10 license=('custom')
11 source=(
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
18 build() {
19     cd $srcdir/cd
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')