summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aca5df353ba634f1ffac622e8f4078d0142f9f60 (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
# Maintainer: 0WN463 <0WN3D.e4d568 at burnermail dot io> 
# Contributor: 

pkgname=bobcat-git
pkgver=r67.fdcb96a
pkgrel=1
pkgdesc="CLI script to browse and solve problems on Kattis, the online judge"
arch=('any')
url="https://github.com/0WN463/bobcat"
license=('MIT')
depends=('python' 'python-requests' 'python-lxml' 'python-beautifulsoup4')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel')
optdepends=('python-unicodeit: LaTeX to unicode conversion')
source=("git+$url")
sha256sums=('SKIP')

prepare() {
  git -C "${srcdir}/bobcat" clean -dfx
}

build() {
  cd "${srcdir}/bobcat"
  python -m build --wheel --no-isolation
}

pkgver() {
  cd "${srcdir}/bobcat"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${srcdir}/bobcat"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}