1 # Maintainer: Yngve Inntjore Levinsen <yngve.inntjore.levinsen@cern.ch>
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')
18 elif [ "${CARCH}" = "i686" ]; then
19 md5sums=('7e2c4b5e5bbf112158b41667b5f400d1')
22 source=($pkgname-$pkgver.deb::"http://cern.ch/lcg-heppkg/debian/pool/hep/m/${pkgname}/${pkgname}_${pkgver}-${_debver}_${_carch}.deb")
24 install -d ${pkgdir}/usr/share/licenses/${pkgname}
25 install -d ${pkgdir}/usr/bin
26 install -d ${pkgdir}/usr/lib
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}