updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / madx-dev / PKGBUILD
blob6db57bf9817f9ff6d3d9e76b97b80d1f1a51e2b1
1 # Contributor: Yngve Inntjore Levinsen <yngve.inntjore.levinsen@cern.ch>
4 pkgname=madx-dev
5 _pkgname=madX-dev
6 pkgver=4_01_48
7 _pkgver=4.01.48
8 pkgrel=1
9 pkgdesc="a program for particle accelerator design and simulation with a long history, development (weekly build) version"
10 depends=('libx11' 'libxcb')
11 makedepends=('rpmextract' 'tar')
12 optdepends=('')
13 arch=('i686' 'x86_64')
14 license=('Mad-X:"Standard CERN copyright statement", PTC:"Covered by F. Schmidt and E. Forest", SDDS:"Specific copyright statement distributed with Mad-X"')
15 url="http://cern.ch/mad"
16 md5sums=('1456e0e3604f103a3513f372c9e3e500')
17 source=($pkgname-$pkgver.rpm::"http://frs.web.cern.ch/frs/mad-X_bin/madX-dev-${_pkgver}-Linux.rpm")
18 build() {
19     
20     rpmextract.sh $pkgname-$pkgver.rpm
22 #    No copyright statements available in current rpm
23 #    install -d ${pkgdir}/usr/share/licenses/${pkgname}
24 #    install -D -m644 usr/share/doc/${_pkgname}/License.txt ${pkgdir}/usr/share/licenses/${pkgname}
25 #    install -D -m644 usr/share/apps/katepart/syntax/madx.xml ${pkgdir}/usr/share/apps/katepart/syntax/madx.xml
27     install -D -m755 usr/bin/madx_dev ${pkgdir}/usr/bin/madx_dev
28     install -D -m644 usr/lib/libmadx.a ${pkgdir}/usr/lib/libmadx.a
29     cp -r usr/include/madX ${pkgdir}/usr/include/
30     }