summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c722b29ae5999992afc0b3155ae6708c92d92403 (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
# Maintainer: Alex Kubica <alexkubicail@gmail.com>
_name=mal
_commit=b7117be
pkgname=python-mal-git
pkgver=r101.b7117be
pkgrel=1
pkgdesc="MyAnimeList command line interface"
arch=(any)
url="http://manoel.tk/MAL/"
license=('GPL3')
depends=('python' 'python-requests' 'python-appdirs' 'python-decorating' 'python-argparse')
makedepends=('git')
source=("git+https://github.com/ryukinix/${_name}.git#commit=${_commit}")
md5sums=('SKIP')

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

package() {
  cd "$srcdir/${_name}"
  python setup.py install --root="$pkgdir/" --optimize=1
}