summaryrefslogtreecommitdiff
path: root/community/glipper-old/PKGBUILD
blob: f1b00c66670e0f797ad077bff77a70d74a6126d3 (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
# $Id: PKGBUILD 8877 2010-01-22 03:13:44Z dgriffiths $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Pbl Gomez <pblgomez@gmail.com>

pkgname=glipper-old
pkgver=0.95.1
pkgrel=3
pkgdesc="Gnome clipboard for nongnome desktop"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/glipper/"
license=("GPL")
depends=(libgnome libglade)
makedepends=(pkgconfig perlxml gnome-doc-utils)
source=(http://downloads.sourceforge.net/sourceforge/glipper/glipper-$pkgver.tar.gz \
	arch.patch)
md5sums=('aa6524f59342d72fee8bed36e6267746'
         'e9e9581330bbc1fe0a28fa349de02bda')

build() {
  cd $startdir/src/glipper-$pkgver

  ln -s -f /usr/share/aclocal/gnome-doc-utils.m4 m4/gnome-doc-utils.m4
  ln -s -f /usr/share/gnome-doc-utils/gnome-doc-utils.make gnome-doc-utils.make

  patch -Np1 <../arch.patch && \
  mv data/glipper.png data/glipper-old.png && \
  mv help/C/glipper.xml help/C/glipper-old.xml && \
  mv data/glipper-properties.glade data/glipper-old-properties.glade && \
  mv data/glipper.desktop.in data/glipper-old.desktop.in || return 1

  ./configure --prefix=/usr --program-suffix=-old --disable-gnome || return 1
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
  rm -rf $startdir/pkg/usr/share/gnome
}