summaryrefslogtreecommitdiff
path: root/community/bamf/PKGBUILD
blob: 7d220013c0b2964afc06838042a000caeea356cf (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
# $Id: PKGBUILD 111940 2014-05-27 08:42:51Z jgc $
# Maintainer: Maxime Gauduin <alucryd at gmail dot com>
# Contributor: Balló György <ballogyor+arch at gmail dot com>

pkgname=bamf
pkgver=0.5.0
pkgrel=3
pkgdesc='Application matching framework'
arch=('i686' 'x86_64')
url='https://launchpad.net/bamf'
license=('GPL')
depends=('libgtop' 'libwnck3')
makedepends=('gobject-introspection' 'python2-lxml' 'vala')
source=("http://launchpad.net/${pkgname}/${pkgver%.*}/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz"
        'fix-legacy-window-test.patch')
sha256sums=('93b1acced96d32b36270cf18feb2761014ce2226814303c632448f717a8f9113'
            '0d052f6d654ae86d14d7f73c428237b9410d11986ee1112d988a7ffe1df0988e')

prepare() {
  cd ${pkgname}-${pkgver}

  patch -Np0 -i ../fix-legacy-window-test.patch
}

build() {
  cd ${pkgname}-${pkgver}

  export PYTHON='/usr/bin/python2'
  ./configure --prefix='/usr' --sysconfdir='/etc' --localstatedir='/var' \
              --libexecdir="/usr/lib/${pkgname}" --disable-{static,webapps}
  make
}

package() {
  cd ${pkgbase}-${pkgver}

  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: