summaryrefslogtreecommitdiff
path: root/extra/chemtool
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-09 23:14:54 +0000
committerroot <root@rshg054.dnsready.net>2012-02-09 23:14:54 +0000
commit4bc61018eec54dbe50e7556ce01d2ef2859b2c9f (patch)
tree3ea5705a573fd320639395f484fc12335e0a1b88 /extra/chemtool
parent54b7119c36756b86ea463649ee972cd6c1ce5863 (diff)
Thu Feb 9 23:14:54 UTC 2012
Diffstat (limited to 'extra/chemtool')
-rw-r--r--extra/chemtool/PKGBUILD17
-rw-r--r--extra/chemtool/chemtool.install11
2 files changed, 22 insertions, 6 deletions
diff --git a/extra/chemtool/PKGBUILD b/extra/chemtool/PKGBUILD
index b3992140d..da3d31c50 100644
--- a/extra/chemtool/PKGBUILD
+++ b/extra/chemtool/PKGBUILD
@@ -1,24 +1,29 @@
-# $Id: PKGBUILD 78228 2010-04-20 03:46:15Z dgriffiths $
+# $Id: PKGBUILD 149523 2012-02-08 11:37:54Z tpowa $
#Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=chemtool
-pkgver=1.6.12
-pkgrel=3
+pkgver=1.6.13
+pkgrel=1
pkgdesc="A small program for drawing chemical structures"
arch=(i686 x86_64)
license=('GPL2')
url="http://ruby.chemie.uni-freiburg.de/~martin/chemtool/chemtool.html"
-depends=('gtk2')
+depends=('gtk2' 'desktop-file-utils')
options=(!libtool)
source=(http://ruby.chemie.uni-freiburg.de/~martin/${pkgname}/${pkgname}-${pkgver}.tar.gz chemtool.desktop)
+install=chemtool.install
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --mandir=/usr/share/man
- make || return 1
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir}/ install
install -D -m644 gnome/chemtool.png ${pkgdir}/usr/share/pixmaps/chemtool.png
install -D -m644 ${srcdir}/chemtool.desktop ${pkgdir}/usr/share/applications/chemtool.desktop
}
-md5sums=('f9e0633cbda09fcfe5a4ea4c56bcd460'
+md5sums=('d263b8cf097134e36c5e929e7e77d668'
'8cbb6f7021bd5aaa6f6a31fc4d95a06e')
diff --git a/extra/chemtool/chemtool.install b/extra/chemtool/chemtool.install
new file mode 100644
index 000000000..e111ef946
--- /dev/null
+++ b/extra/chemtool/chemtool.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}