blob: 24b667a6777abe753c48d8dc8a79c607ee1a64ac (
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: Luke Shumaker <lukeshu@sbcglobal.net>
pkgname=django-countries
pkgver=1.5
pkgdesc="Provides a country field for Django models"
license=('custom:MIT')
url="http://bitbucket.org/smileychris/django-countries/"
pkgrel=1
arch=(any)
depends=('django')
makedepends=('python2-distribute')
source=(http://pypi.python.org/packages/source/${pkgname:0:1}/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=(6c65fcc3aa7de065a54cdb619397626d)
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's|#!/usr/bin/env python\s*$|#!/usr/bin/env python2|' setup.py */bin/*.py
# fix python->python2, and a typo!
sed -i 's|python regen[a-z]*\.py|python2 regenerage.py|' */bin/regenerate.py
}
package() {
cd "$srcdir/$pkgname-$pkgver"
./setup.py install --root="$pkgdir/" --optimize=1
}
|