1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
6 pkgdesc="General Atomistic Modelling Graphic Interface is a free package to construct, view and analyse atomic structures."
8 url="http://www.gamgi.org/"
10 depends=('gtkglext' 'hicolor-icon-theme')
11 options=('!emptydirs')
12 install="$pkgname.install"
13 source=("${url}src/${pkgname}-all-${pkgver}.tar.gz"
15 md5sums=('e1acb64b9a9ad286435b2834f6c887aa'
16 'b558e09451368776b70e168c8f8e6c13')
19 cd "${srcdir}/${pkgname}${pkgver}/src"
21 # strip any lib64 reference
22 sed -i "s|lib64|lib|g" make_local
28 cd "${srcdir}/${pkgname}${pkgver}"
30 install -d "${pkgdir}"/usr/{bin,share/{{doc/,}${pkgname},man/man1}}
33 install -Dm755 src/${pkgname} "${pkgdir}/usr/bin"
35 # Icons and desktop file
36 for i in 16 22 32 48; do
37 install -Dm644 doc/icon/${pkgname}${i}.png \
38 "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"
41 install -Dm644 ../${pkgname}.desktop \
42 "${pkgdir}/usr/share/applications/${pkgname}.desktop"
43 install -Dm644 doc/icon/${pkgname}316.png \
44 "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
47 install -Dm644 doc/man/page "${pkgdir}/usr/share/man/man1/$pkgname.1"
48 cp -a doc/*[^man] "${pkgdir}/usr/share/doc/${pkgname}"
50 # Data files and examples
51 cp -a dat/* "${pkgdir}/usr/share/${pkgname}"