summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31fcfa946774353552d68d364198b43d3a14dcc0 (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
# Maintainer: Tim Liou <wheatdoge at gmail dot com>
_pkgname="i3-workspace-groups"
pkgname="${_pkgname}-git"
pkgver=r78.e30c30f
pkgrel=1
pkgdesc='Manage i3wm workspaces in groups you control'
url='https://github.com/infokiller/i3-workspace-groups'
arch=('any')
license=('MIT')
source=("git+https://github.com/infokiller/i3-workspace-groups")
sha256sums=('SKIP')
depends=('python' 'i3-wm')
makedepends=('python-setuptools' 'git')
provides=('i3-workspace-groups')
conflicts=('i3-workspace-groups')
install="${pkgname}.install"

pkgver() {
    cd "$_pkgname"
    ( set -o pipefail
      git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
      printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

build() {
    cd "$_pkgname"
    python setup.py build
}

package() {
    cd "$_pkgname"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}