updated on Thu Jan 12 16:09:17 UTC 2012
[aur-mirror.git] / spice-xpi / PKGBUILD
blobebb58e7a8d819690ed62a57b94c18c26d51b8a2a
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Your Name <youremail@domain.com>
7 pkgname=spice-xpi
8 pkgver=2.2
9 _rpmrel=2.3
10 pkgrel=$_rpmrel
11 pkgdesc="SPICE extension for Mozilla"
12 arch=('i686' 'x86_64' )
13 url="http://redhat.com"
14 license=('GPL')
15 depends=('qspice-client' 'log4cpp')
16 makedepends=('gcc' 'zip' 'xulrunner' 'libx11' 'automake' 'rpmextract')
17 options=()
18 install=
19 changelog=
20 source=(ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/$pkgname-$pkgver-$_rpmrel.el5_5.src.rpm arch-fixes.patch)
21 noextract=()
22 md5sums=('c241e0bf08783a9bc57e50251787e255')
24 build() {
25   cd $srcdir
26   rpmextract.sh ${pkgname}-${pkgver}-$_rpmrel.el5_5.src.rpm
27   tar xjf $pkgname-$pkgver.tar.bz2
29   cd "$srcdir/$pkgname-$pkgver"
30   patch -p1 -i ../spice-xpi-2.2-npruntime.patch
31   patch -p1 -i ../spice-xpi-2.2-sec.patch
32   patch -p1 -i ../arch-fixes.patch
33   ./configure --prefix=/usr
34   make
37 package() {
38   cd "$srcdir/$pkgname-$pkgver"
40   make DESTDIR="$pkgdir/" install
43 # vim:set ts=2 sw=2 et:
44 md5sums=('b6baa02212170cb24c43bc4b48ced198'
45          'b17230339f8a4af452d5363b784a0819')