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

pkgname=bobcat-git
pkgver=r53.6b41f76
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-setuptools')
source=("git+$url")
sha256sums=('SKIP')

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

package() {
  cd "${srcdir}/bobcat"
  python setup.py install --root="$pkgdir/" #--prefix=/usr --root="$pkgdir/" --optimize=1 --skip-build
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}