summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 4 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7670a688a3e..0e5e3bf7d99 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,7 @@
# Maintainer: robertfoster
# Contributor: SpepS <dreamspepser at yahoo dot it>
-pkgbase=pjproject
-pkgname=("python2-$pkgbase")
+pkgname=python2-pjproject
pkgver=2.7.1
pkgrel=1
pkgdesc="Open source SIP stack and media stack (also known as pjsip)"
@@ -11,10 +10,10 @@ url="http://www.pjsip.org/"
license=('GPL')
depends=('pjproject' 'python2')
makedepends=('python2-distribute')
-source=("http://www.pjsip.org/release/$pkgver/$pkgbase-$pkgver.tar.bz2")
+source=("http://www.pjsip.org/release/$pkgver/${pkgname##python2-}-$pkgver.tar.bz2")
-package_python2-pjproject() {
- cd $srcdir/$pkgbase-$pkgver
+package() {
+ cd $srcdir/${pkgname##python2-}-$pkgver
cd pjsip-apps/src/python/
python2 setup.py install --root="$pkgdir"