updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gamgi / PKGBUILD
blobd76c9031fe2b4af9618d2806171e79d942387472
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=gamgi
4 pkgver=0.15.5
5 pkgrel=1
6 pkgdesc="General Atomistic Modelling Graphic Interface is a free package to construct, view and analyse atomic structures."
7 arch=('i686' 'x86_64')
8 url="http://www.gamgi.org/"
9 license=('GPL')
10 depends=('gtkglext' 'hicolor-icon-theme')
11 options=('!emptydirs')
12 install="$pkgname.install"
13 source=("${url}src/${pkgname}-all-${pkgver}.tar.gz"
14         "${pkgname}.desktop")
15 md5sums=('e1acb64b9a9ad286435b2834f6c887aa'
16          'b558e09451368776b70e168c8f8e6c13')
18 build() {
19   cd "${srcdir}/${pkgname}${pkgver}/src"
21   # strip any lib64 reference
22   sed -i "s|lib64|lib|g" make_local
24   make
27 package() {
28   cd "${srcdir}/${pkgname}${pkgver}"
30   install -d "${pkgdir}"/usr/{bin,share/{{doc/,}${pkgname},man/man1}}
32   # Main App
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"
39   done
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"
46   # Man page and docs
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}"