# Maintainer (Arch): Brian Bidulock <bidulock@openss7.org>
# Contributor (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor (Arch): Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor (Arch): Jaroslav Lichtblau <tu@dragonlord.cz>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=gxmessage-gtk2
_pkgname=gxmessage
pkgver=2.20.4
pkgrel=1
pkgdesc="A GTK2 based xmessage clone for GTK2."
arch=('i686' 'x86_64')
url="http://homepages.ihug.co.nz/~trmusson/programs.html#gxmessage"
license=('GPL')
depends=('gtk2' 'desktop-file-utils')
makedepends=('pkgconfig' 'intltool')
provides=("$_pkgname")
conflicts=("$_pkgname")
install=$_pkgname.install
source=(http://homepages.ihug.co.nz/~trmusson/stuff/$_pkgname-$pkgver.tar.gz
        $_pkgname.desktop)
md5sums=('dbef00c5e9dd1fb3463b08044be7ae8e'
         'af92506581c1aae70e3845a66a983f22')

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
  install -D -m644 "$srcdir/$_pkgname.desktop" \
    "${pkgdir}/usr/share/applications/$_pkgname.desktop"
}
