# $Id: PKGBUILD 96104 2013-08-20 06:32:40Z lcarlier $
# Maintainer: Maxime Gauduin <alucryd@gmail.com>
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
# Contributor: Wieland Hoffmann <the_mineo@web.de>
# Contributor: Amr Hassan <amr.hassan@gmail.com>

pkgname=python2-pylast
pkgver=0.5.11
pkgrel=4
pkgdesc='A Python interface to the last.fm API'
arch=('any')
url='http://pylast.googlecode.com'
license=('Apache')
depends=('python2')
makedepends=('python2-setuptools')
source=("http://pypi.python.org/packages/source/p/${pkgname#*-}/${pkgname#*-}-$pkgver.tar.gz")
sha256sums=('bf35820be35447d55564d36072d40b09ac8a7fd41a6f1a7a9d408f4d0eaefac4')

build() {
  cd ${pkgname#*-}-$pkgver

  python2 setup.py build
}

package() {
  cd ${pkgname#*-}-$pkgver

  python2 setup.py install --root="${pkgdir}" --optimize=1
}

# vim: ts=2 sw=2 et:
