1 # $Id: PKGBUILD 65442 2010-01-29 07:48:24Z eric $
2 # Maintainer: Eric Belanger <eric@archlinux.org>
3 # Contributor: John Proctor <jproctor@prium.net>
8 pkgdesc="PLT Scheme Environment"
10 url="http://www.drscheme.org/"
12 depends=('gcc-libs' 'cairo' 'desktop-file-utils' 'libjpeg' 'mesa' 'openssl' 'libxaw' 'libxmu' 'libxft')
13 options=('!makeflags')
14 install=drscheme360.install
15 source=(http://download.plt-scheme.org/bundles/${pkgver}/plt/plt-${pkgver}-src-unix.tgz drscheme360.desktop libpng-1.4.patch)
16 md5sums=('84bcab3ff30c333ae3c6b732518bdf27'
17 '62db1f7163404828f289c988ad111641'
18 'ec18faef466c1f18047d14a50be0413c')
21 cd "${srcdir}/plt-${pkgver}/src"
22 patch -p2 -i "${srcdir}/libpng-1.4.patch" || return 1
23 ./configure --prefix=/opt/drscheme360 || return 1
24 make LDFLAGS="" || return 1
25 make LDFLAGS="" DESTDIR="${pkgdir}" install || return 1
27 install -D -m644 ../collects/icons/plt.xpm "${pkgdir}/usr/share/pixmaps/drscheme360.xpm" || return 1
28 install -D -m644 "${srcdir}/drscheme360.desktop" "${pkgdir}/usr/share/applications/drscheme360.desktop" || return 1
30 mkdir -p "${pkgdir}/usr/bin" || return 1
31 cd "${pkgdir}/usr/bin" || return 1
32 ln -s ../../opt/drscheme360/bin/drscheme drscheme360 || return 1