summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a12296e598b1b673c99f2b454a7c607d728f2eac (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
# Maintainer: Murat <dev at yamahi dot eu>

pkgname="swayrst-git"
_pkgname="swayrst"
pkgdesc="Restore workspaces in sway to displays and move applications to saved workspaces"
pkgver=1.1
pkgrel=1
arch=(any)
url="https://github.com/Nama/swayrst"
license=(MIT)
depends=("python-sh" "i3ipc-python")
makedepends=(
    "git"
    "python-build"
    "python-installer"
    "python-wheel"
    )
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
replaces=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/Nama/swayrst.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git describe --long --tags | sed 's|-|+|g'
}

build() {
	git -C "${srcdir}/${_pkgname}" clean -dfx
    cd "${srcdir}/${_pkgname}"
	python -m build --wheel --no-isolation
}

package() {
	cd "${srcdir}/${_pkgname}"
    python -m installer --destdir="$pkgdir" dist/*.whl
}