desktop/python2-urlobject/PKGBUILD

29 lines
800 B
Bash
Raw Normal View History

2013-05-17 13:29:57 +08:00
# Original source: https://aur.archlinux.org/packages/py/python2-urlobject/PKGBUILD
pkgname=python2-urlobject
_pkgname=URLObject
2016-04-24 03:25:02 +08:00
pkgver=2.4.0
2013-05-17 13:29:57 +08:00
pkgrel=1
pkgdesc="A utility class for manipulating URLs."
arch=(any)
url="http://github.com/zacharyvoase/urlobject"
license=('custom:Public Domain')
depends=('python2')
makedepends=('python2-distribute')
source=("http://pypi.python.org/packages/source/U/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
2016-04-24 03:25:02 +08:00
md5sums=('2ed819738a9f0a3051f31dc9924e3065')
2013-05-17 13:29:57 +08:00
build() {
cd $srcdir/$_pkgname-$pkgver
python2 setup.py build
}
package() {
cd $srcdir/$_pkgname-$pkgver
python2 setup.py install --prefix=/usr --root=$pkgdir
# License.
install -d $pkgdir/usr/share/licenses/$pkgname
cp UNLICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt
}