updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / lsprepost / PKGBUILD
blob8275a7eba8ca888d12cd96ac5741b633d2866ad6
1 # Maintainer: Tim Hartman <tbhartman at gmail>
2 pkgname=lsprepost
3 pkgver=3.0
4 pkgrel=1
5 pkgdesc="Pre- and post-processor for LS-DYNA"
6 arch=("x86_64")
7 url=("http://www.lstc.com/lspp")
8 license=('unknown')
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"
12         "${pkgname}"
13         "${pkgname}.desktop")
14 md5sums=('0002e4cb69be339fa75341aa8a0a944e'
15          '0e838ce95db0301ba013b52b0038dca5'
16          '410f535de0a8838959d784b5c4484133')
18 build() {
19   cd "$srcdir"
20   mv `ls | grep ${pkgname}${pkgver}` "${pkgname}-${pkgver}"
21   cd "${pkgname}-${pkgver}"
22   chrpath -d lsprepost
23   
24   cd lib
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
32 package() {
33   cd "$srcdir/$pkgname-$pkgver"
34   
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}/."
38   
39   mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
40   cp -r --preserve=all ./resource/* "${pkgdir}/usr/share/doc/${pkgname}/."
41   
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
53   chmod +x libjpeg.so.6
54   ln -s /usr/lib/libjpeg.so libjpeg.so.62
55   chmod +x libjpeg.so.62