summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3acff69e6444c3051d74bf7b9938661981816b26 (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
# Maintainer: Mathieu Clabaut <mathieu@clabaut.net>

pkgname=layman-git
pkgver=r210.df2c951
pkgrel=1
pkgdesc="A layout management framework for sway/i3"
arch=('any')
url="https://github.com/frap129/layman.git"
license=('GPL3')
depends=('python' 'python-i3ipc' 'python-tomli' 'python-setproctitle')
makedepends=('python-setuptools' 'git-lfs')
source=()
source=("git+https://github.com/frap129/layman.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/layman"
  ( 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 "$srcdir/layman"
   python -m build --wheel --no-isolation
}

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

# vim:ts=2:sw=2:et: