desktop/python2-urlobject/PKGBUILD
2016-04-23 20:25:02 +01:00

29 lines
800 B
Bash

# Original source: https://aur.archlinux.org/packages/py/python2-urlobject/PKGBUILD
pkgname=python2-urlobject
_pkgname=URLObject
pkgver=2.4.0
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")
md5sums=('2ed819738a9f0a3051f31dc9924e3065')
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
}