summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c46422375d91e1702d888921cd325f6c5fb81025 (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
# Maintainer: SyreeseOfficial <syreese@example.com>
pkgname=focusnoise-cli-git
_pkgname=FocusNoiseCLI
pkgver=1.0.0.r1.g0f2126d
pkgrel=2
pkgdesc="Focus Noise Player CLI - Ambient sounds for deep focus"
arch=('any')
url="https://github.com/SyreeseOfficial/FocusNoiseCLI"
license=('MIT')
depends=('python' 'python-pygame' 'python-rich')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
provides=('focusnoise-cli')
conflicts=('focusnoise-cli')
source=("git+https://github.com/SyreeseOfficial/FocusNoiseCLI.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  if git describe --long --tags >/dev/null 2>&1; then
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  else
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  fi
}

build() {
  cd "$_pkgname"
  python -m build --wheel --no-isolation
}

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