summaryrefslogtreecommitdiff
path: root/~mtjm/python-getmediumurl/PKGBUILD
blob: bacc1c0f16a8bf8b480a9064701c62abab999540 (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
27
# Maintainer: Michał Masłowski <mtjm@mtjm.eu>

_pkgname=GetMediumURL
pkgname=python-getmediumurl
pkgver=0.0a5
pkgrel=1
pkgdesc="A package for getting URLs of media files from some websites"
arch=("any")
url="http://savannah.nongnu.org/projects/getmediumurl/"
license=('AGPL')
depends=('python' 'python3-lxml' 'python-urlreader' 'python-distribute')
checkdepends=('python2')  # due to my laziness
options=(!emptydirs)
source=("http://download.savannah.gnu.org/releases/getmediumurl/${_pkgname}-${pkgver}.tar.gz")
md5sums=("0d3660e178bd58549d7a5718f8e39de2")

check() {
  cd "$srcdir/$_pkgname-$pkgver"
  LANG=en_US.UTF-8 python setup.py test
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  LANG=en_US.UTF-8 python setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et: