summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75da1fbb57ed3359569c2a1e6da4372b7b401e7e (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
# Maintainer: willemw <willemw12@gmail.com>

pkgname=bobrossquotes-git
pkgver=1.0.r4.g4bb418d
pkgrel=1
pkgdesc='Quotes from Bob Ross'
arch=(any)
url=https://github.com/kz6fittycent/BobRossQuotes
license=(MIT)
depends=(python)
makedepends=(git python-build python-installer python-setuptools python-wheel)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
  git -C "$pkgname" describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

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

  mv "$pkgdir/usr/bin/bobross"{,quotes}
}