summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 18957b523d82604bd670e999fb1e7fdeb4f4fcda (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: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgname=python-aur
pkgver=0.10.0
pkgrel=2
pkgdesc='Arch User Repository API interface for Python'
arch=('any')
url='https://github.com/cdown/aur'
license=('ISC')
depends=('python-requests' 'python-inflection')
makedepends=('python-setuptools')
source=(https://pypi.python.org/packages/source/a/aur/aur-$pkgver.tar.gz
        aur-0.10-no-popularity-in-v1.patch)
md5sums=('fad8a5a1ff35f30c14a7b75a9258dafb'
         'be8b45c7df9c3596817ff5178e122654')

prepare() {
  cd aur-$pkgver
  patch -p1 -i ../aur-0.10-no-popularity-in-v1.patch
}

package() {
  cd aur-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}