git » python-pyelftools.git » commit 8d85414

upgpkg: 0.20-1

author Rémy Oudompheng
2012-02-26 09:20:55 UTC
committer Rémy Oudompheng
2012-02-26 09:20:55 UTC
parent 3312ddb14647e2d0d71aa2982e6a410ea67d7f18

upgpkg: 0.20-1

PKGBUILD +4 -3

diff --git a/PKGBUILD b/PKGBUILD
index 5fff288..c07f3b3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
 # Maintainer : Rémy Oudompheng <remy@archlinux.org>
 
 pkgname=python-pyelftools
+_pypiname=pyelftools
 pkgver=0.20
 pkgrel=1
 pkgdesc="Python library for analyzing ELF files and DWARF debugging information"
@@ -8,16 +9,16 @@ arch=('any')
 url="http://pypi.python.org/pypi/pyelftools"
 license=('custom')
 depends=('python')
-source=("http://pypi.python.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+source=("http://pypi.python.org/packages/source/p/${_pypiname}/${_pypiname}-${pkgver}.tar.gz")
 md5sums=("5ac7b279a01c41e5b022a1a382eb9d92")
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  cd ${srcdir}/${_pypiname}-${pkgver}
   python setup.py build
 }
 
 package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  cd ${srcdir}/${_pypiname}-${pkgver}
   python setup.py install --root=${pkgdir}
   install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }