summaryrefslogtreecommitdiff
path: root/pcr/gxmessage2/PKGBUILD
blob: 180edee04557dabffc298ae9a936fb37ffbe2d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer (Arch): Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor (Arch): Jaroslav Lichtblau <tu@dragonlord.cz>

_pkgname=gxmessage
pkgver=2.20.1

pkgname=$_pkgname${pkgver%%.*}
conflicts=("$_pkgname")
provides=("$_pkgname=$pkgver")
pkgrel=1
pkgdesc="A GTK+${pkgver%%.*} based xmessage clone."
arch=('i686' 'x86_64')
url="http://homepages.ihug.co.nz/~trmusson/programs.html#gxmessage"
license=('GPL')
depends=("gtk${pkgver%%.*}" 'desktop-file-utils')
makedepends=('pkgconfig' 'intltool')
install=$_pkgname.install
source=(https://ftp.gnu.org/pub/gnu/$_pkgname/$_pkgname-${pkgver}.tar.gz{,.sig}
        $_pkgname.desktop.in)
md5sums=('45428121eb08db8472fc378dc93d171d'
         'SKIP'
         '03272ac913cd91437912002c5a7e4fe5')

build() {
  cd "$srcdir"
  sed "s|@toolkit@|GTK+${pkgver%%.*}|g" \
    < gxmessage.desktop.in \
    > gxmessage.desktop
  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"
}