updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / colbea / PKGBUILD
blobe53f4464a1fda72176eb616b289d3b3089552531
1 # Maintainer: mickele <mimocciola@yahoo.com>
2 pkgname=colbea
3 pkgver=0.55.1
4 pkgrel=1
5 pkgdesc="Colbea is a program for the calculation of 2D structures"
6 url="http://www.driemeyer.net/colbea/"
7 arch=(i686 x86_64)
8 license=('GPL')
9 depends=('wxgtk-2.6-ansi')
10 makedepends=('autoconf')
11 replaces=()
12 conflicts=()
13 provides=()
14 source=(http://www.driemeyer.net/colbea/download/noarch/stable/${pkgname}-${pkgver}.tar.gz
15         acinclude.m4 ${pkgname}.desktop)
17 build() {
18   cd ${srcdir}/${pkgname}-${pkgver}
19   cp ${srcdir}/acinclude.m4 ${srcdir}/${pkgname}-${pkgver}
20   sed -e "s|\$(prefix)|\$(DESTDIR)\$(prefix)|g" -i Makefile.am
21   sed -e "s|wx-config|wx-config-2.6|g" \
22       -i ${srcdir}/${pkgname}-${pkgver}/configure.in
23   autoreconf -f -i
24   ./configure --prefix=/opt \
25               --with-wx-config=wx-config-2.6 || return 1
26   make || return 1
27   make DESTDIR=${startdir}/pkg install || return 1
29   install -D -m755 $srcdir/$pkgname-$pkgver/src/editor/rc/colbea.png $pkgdir/usr/share/pixmaps/$pkgname.png || return 1
31   desktop-file-install  --dir=$pkgdir/usr/share/applications \
32         $srcdir/${pkgname}.desktop || return 1
34 md5sums=('93914e176b3e1439b7f68ec96d319fc3'
35          '246535a5cd10cbd2a8fd0bb204029965'
36          '0314d010ab763362cfb1209ddca1f16d')