1 # Maintainer: Tim Hartman <tbhartman at gmail>
5 pkgdesc="Pre- and post-processor for LS-DYNA"
7 url=("http://www.lstc.com/lspp")
9 depends=('libjpeg' 'libpng12' 'mesa' 'gtk2' 'libxmu')
10 makedepends=('chrpath')
11 source=("${pkgname}-${pkgver}.tgz::ftp://ftp.lstc.com/outgoing/lsprepost/${pkgver}/linux64/${pkgname}-${pkgver}-opensuse11.tgz"
14 md5sums=('0002e4cb69be339fa75341aa8a0a944e'
15 '0e838ce95db0301ba013b52b0038dca5'
16 '410f535de0a8838959d784b5c4484133')
20 mv `ls | grep ${pkgname}${pkgver}` "${pkgname}-${pkgver}"
21 cd "${pkgname}-${pkgver}"
25 chrpath -d libLSAF.so.0.0.0
26 chrpath -d libLSIO.so.0.0.0
27 chrpath -d libLSMA.so.0.0.0
28 chrpath -d libLSMD.so.0.0.0
29 chrpath -d libLSVI.so.0.0.0
33 cd "$srcdir/$pkgname-$pkgver"
35 mkdir -p "${pkgdir}/usr/lib/${pkgname}"
36 cp -r --preserve=all ./lib/* "${pkgdir}/usr/lib/${pkgname}/."
37 cp -r --preserve=all "$pkgname" "${pkgdir}/usr/lib/${pkgname}/."
39 mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
40 cp -r --preserve=all ./resource/* "${pkgdir}/usr/share/doc/${pkgname}/."
42 mkdir -p "${pkgdir}/usr/bin"
43 cd "${pkgdir}/usr/bin"
44 cp "${srcdir}/${pkgname}" .
45 chmod 755 "${pkgname}"
47 mkdir -p "${pkgdir}/usr/share/applications"
48 cd "${pkgdir}/usr/share/applications"
49 cp "${srcdir}/${pkgname}.desktop" .
51 cd "${pkgdir}/usr/lib"
52 ln -s /usr/lib/libjpeg.so libjpeg.so.6
54 ln -s /usr/lib/libjpeg.so libjpeg.so.62
55 chmod +x libjpeg.so.62