summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 729a85b168fd28edd085b0e4dd6c4b2e7cb0a457 (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=1
pkgdesc="Dynamically rename i3wm workspaces depending on windows"
url="https://gitlab.com/flib99/i3-workspace-names"
depends=('python')
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"
}