summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c116615b0420075750fcc84fc0fabf2a3db1d634 (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
42
43

_pkgname=x-tile
pkgname=${_pkgname}-git
pkgver=2.6.r3.gbc2ffd3
pkgrel=1
pkgdesc="X-tile is an application that allows you to select a number of windows and tile them in different ways. It works on any X desktop (gnome, kde, xfce, lxde…)."
arch=(any)
url=http://www.giuspen.com/$_pkgname
license=(GPL2)

#depends=('hicolor-icon-theme' 'pygtk' 'python2-libappindicator')
depends=('gconf' 'libappindicator-gtk3' 'python2-gobject')
makedepends=('git' 'python2-distutils-extra')

provides=("${_pkgname}")
conflicts=("${_pkgname}")

source=("${_pkgname}::git+https://github.com/giuspen/${_pkgname}.git")
sha256sums=('SKIP')

prepare() {
        cd "${srcdir}/${_pkgname}"
        sed -i 's%#!/usr/bin/env python%#!/usr/bin/env python2%g' setup.py
}

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${srcdir}/${_pkgname}"

    echo "python script, so nothing to build :) "
}

package() {
	cd "${srcdir}/${_pkgname}"

	python2 setup.py install --prefix=/usr --root="${pkgdir}"
}