summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0184558c4a3a008837e11adea8d5a62c459f269 (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
_pkgname=sway-dynamic-names
pkgname=$_pkgname-git
pkgrel=1
pkgver=1.2.1.r1.g0851571
pkgdesc="Dynamically update the name of each Sway WM workspace using font-awesome icons"
url="https://github.com/j-waters/sway-dynamic-names"
depends=('python-click'
         'python-yaml'
         'python-i3ipc'
         'python-fontawesome'
         'python-pyxdg')
makedepends=('git' 'python-setuptools')
conflicts=('sway-dynamic-names')
provides=('sway-dynamic-names')
license=('GPL')
arch=('any')
source=("${_pkgname}::git+${url}.git")
md5sums=("SKIP")


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

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

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