summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 39d26be85673edaa37570a1d8aad5f44b34b4863 (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
pkgbase=('i3-workspace-names')
pkgname=('i3-workspace-names')
_module='i3_workspace_names'
pkgver='0.3.1'
pkgrel=2
pkgdesc="Dynamically rename i3wm workspaces depending on windows"
url="https://gitlab.com/flib99/i3-workspace-names"
depends=('python' 'i3-wm')
makedepends=('python-setuptools')
license=('GPL')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/i/i3-workspace-names/i3-workspace-names-${pkgver}.tar.gz")
md5sums=('SKIP')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python setup.py build
}

package() {
    depends+=()
    cd "${srcdir}/${pkgname}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
    install -D -m 0644 "$srcdir/$pkgbase-$pkgver/config.example.json" "$pkgdir/usr/share/config.example.json"
}