summaryrefslogtreecommitdiff
path: root/community/fxprocessview/PKGBUILD
blob: b9a25211b23d0721a010ab473d90f957eaacb554 (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
# $Id: PKGBUILD 90030 2013-05-06 19:37:02Z foutrelis $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sander Jansen <sander@knology.net>

pkgname=fxprocessview
pkgver=0.5.0
pkgrel=6
pkgdesc="Process Viewer"
arch=('i686' 'x86_64')
license=('GPL')
depends=('fox>=1.4.0')
makedepends=('glu')
url="http://code.google.com/p/fxdesktop/"
source=(http://archlinux-stuff.googlecode.com/files/$pkgname-$pkgver.tar.gz \
	build-fix.patch)
md5sums=('5d3cc8d7aec770997c281a743ddfda5a'
	 '2d2c3d54dcd2404149955f12cccb21a5')

build() {
  cd $srcdir/$pkgname-$pkgver
  # Override default flags
  export CFLAGS="-Wall -O2 -pipe"
  export CXXFLAGS="-Wall -O2 -pipe"
  # Compile
  patch -Np1 <../build-fix.patch
  ./gb
  # gb does not return valid error code
  [ -f src/fxprocessview ]
}

package() {
  cd $srcdir/$pkgname-$pkgver
  # make sure destination exists
  mkdir -p $pkgdir/usr/bin
  # Install
  ./gb install --package-root=$pkgdir/usr
}