updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / madx / PKGBUILD
blobdce415629ae77c46d4f5613917683b0af3d4a425
1 # Maintainer: Yngve Inntjore Levinsen <yngve.inntjore.levinsen@cern.ch>
4 pkgname=madx
5 pkgver=5.00.00
6 _debver=2
7 pkgrel=1
8 pkgdesc="a program for particle accelerator design and simulation with a long history, production (stable) version"
9 depends=('libx11' 'libxcb' 'glibc' 'zlib')
10 makedepends=('deb2targz' 'tar' 'gzip')
11 optdepends=('gnuplot: Plotting functionality')
12 arch=('i686' 'x86_64')
13 license=('Mad-X:"Standard CERN copyright statement", PTC:"Covered by F. Schmidt and E. Forest", SDDS:"Specific copyright statement distributed with Mad-X"')
14 url="http://cern.ch/mad"
15 if [ "${CARCH}" = "x86_64" ]; then
16     md5sums=('42766d0fa9af25acb6dedabca05681c7')
17     _carch=amd64
18 elif [ "${CARCH}" = "i686" ]; then
19     md5sums=('7e2c4b5e5bbf112158b41667b5f400d1')
20     _carch=i386
22 source=($pkgname-$pkgver.deb::"http://cern.ch/lcg-heppkg/debian/pool/hep/m/${pkgname}/${pkgname}_${pkgver}-${_debver}_${_carch}.deb")
23 build() {
24     install -d ${pkgdir}/usr/share/licenses/${pkgname}
25     install -d ${pkgdir}/usr/bin
26     install -d ${pkgdir}/usr/lib
27     pwd
28     deb2targz $pkgname-$pkgver.deb
29     tar -xvzf $pkgname-$pkgver.tar.gz
30     gzip -d usr/share/doc/${pkgname}/License.txt.gz
32     install -D -m644 usr/share/doc/${pkgname}/copyright ${pkgdir}/usr/share/licenses/${pkgname}/copyright
33     install -D -m644 usr/share/doc/${pkgname}/License.txt ${pkgdir}/usr/share/licenses/${pkgname}/License.txt
34     install -D -m644 usr/share/doc/${pkgname}/SDDS_COPYRIGHT.TXT ${pkgdir}/usr/share/licenses/${pkgname}/SDDS_COPYRIGHT.TXT
35     install -D -m644 usr/share/doc/${pkgname}/SDDS_LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/SDDS_LICENSE
38     install -D -m755 usr/bin/${pkgname} ${pkgdir}/usr/bin/${pkgname}
39     }