1 # Maintainer: Mark Coolen <mark.coolen@gmail.com>
5 pkgdesc="This program calculates formula weight and percent composition for the given chemical formula."
7 url="http://www.st.hirosaki-u.ac.jp/~rmiya/xmolwt/xmolwt-e.html"
10 source=('http://www.st.hirosaki-u.ac.jp/~rmiya/$pkgname/$pkgname-$pkgver.tar.gz')
11 md5sums=('2bbd0b80595d768e0ea286dca69955a1')
14 pushd "$srcdir/$pkgname-$pkgver"
15 sed "s/gtk12-config/gtk-config/" Makefile.gtk > Makefile
18 install -m 755 -d $pkgdir/usr/bin
19 install -m 755 gmolwt $pkgdir/usr/bin
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
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