summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba385c41e5894b00e5f639c8fb9da065ffc40188 (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: Muflone http://www.muflone.com/contacts/english/
# Contributor: Ryon Sherman <ryon.sherman@gmail.com>

pkgname=cuttlefish-bzr
pkgver=76
pkgrel=7
pkgdesc="Adapt your computer's appearance and settings according to the environment."
arch=('any')
url="https://launchpad.net/cuttlefish"
license=('GPL')
depends=('python2' 'python2-distutils-extra' 'python2-psutil' 'python2-udev'
         'python2-gobject' 'python2-xdg' 'gnome-menus' 'libwnck3' 'dconf'
         'python2-dbus')
makedepends=('bzr')
conflicts=('cuttlefish')
source=("${pkgname}"::"bzr+https://code.launchpad.net/~noneed4anick/cuttlefish/trunk"
        "plugins-use-site-packages.patch"
        "desktop-autostart.patch"
        "remove-ubuntu_almost_fixed_height_mode.patch")
sha256sums=('SKIP'
            'e7cf831a5083655a29a765626a765fe44069b05c31f5749ca76f6d9f22160480'
            '26a91ab2ff6c21f8f3e8eb3474396ec8940313f158778b1fd8711f2643357a5d'
            '30d17a770792016d07c9a695376bddca17c201143b2e2e04aa30f3b83d90905b')

pkgver() {
  cd "${pkgname}"
  bzr revno
}

prepare() {
  cd "${pkgname}"
  patch -p1 -i "../plugins-use-site-packages.patch"
  patch -p1 -i "../desktop-autostart.patch"
  patch -p1 -i "../remove-ubuntu_almost_fixed_height_mode.patch"
}

package() {
  cd "${pkgname}"
  glib-compile-schemas "data/glib-2.0/schemas"
  GSETTINGS_SCHEMA_DIR="data/glib-2.0/schemas" python2 setup.py install --root="${pkgdir}/" --optimize=1
}