updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / xmolwt / PKGBUILD
blob84a725b70a8b80948b35303e4580a4af8392188f
1 # Maintainer: Mark Coolen <mark.coolen@gmail.com>
2 pkgname=xmolwt
3 pkgver=0.7
4 pkgrel=1
5 pkgdesc="This program calculates formula weight and percent composition for the given chemical formula."
6 arch=('i686')
7 url="http://www.st.hirosaki-u.ac.jp/~rmiya/xmolwt/xmolwt-e.html"
8 license=('custom')
9 depends=('gtk')
10 source=('http://www.st.hirosaki-u.ac.jp/~rmiya/$pkgname/$pkgname-$pkgver.tar.gz')
11 md5sums=('2bbd0b80595d768e0ea286dca69955a1')
13 build() {
14   pushd "$srcdir/$pkgname-$pkgver"
15   sed "s/gtk12-config/gtk-config/" Makefile.gtk > Makefile
16   make
18   install -m 755 -d $pkgdir/usr/bin
19   install -m 755 gmolwt $pkgdir/usr/bin
20   pushd $pkgdir/usr/bin
21   ln -s gmolwt molwt
22   popd
24   install -m 755 -d $pkgdir/usr/share/doc/$pkgname
25   install -m 644 -t $pkgdir/usr/share/doc/$pkgname/ Readme Howtouse.jp xmolwt.html xmolwt-e.html gmolwt.gif xmolwt.gif dot.gtkrc 
27   install -m 755 -d $pkgdir/usr/share/applications
28   cat > $pkgdir/usr/share/applications/gmolwt.desktop <<EOF
29 [Desktop Entry]
30 Name=gmolwt
31 Comment=Molecular Weight Calculator
32 Comment[ja]=\262\275\263\330\301\310\300\256\274\260\244\253\244\351ʬ\273\322\316̤\362\267\327\273\273
33 Exec=gmolwt
34 Terminal=0
35 Type=Application
36 EOF