aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-06-08 12:29:48 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-08 12:29:48 +0200
commitae3ba0a661d3c6d634a763a712dfe51cf932b801 (patch)
tree6511e1c36638a09171d50a1f0042445816eca989 /PKGBUILD
parentae607f498737bcc5ff77e515d52edb1e9ab245de (diff)
downloadpkgbuilds-ae3ba0a661d3c6d634a763a712dfe51cf932b801.tar.xz
MAke it a split PKGBUILD for py2 support
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 18 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 44f88a9..6f6c2ac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,32 @@
# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
-pkgname=python-pylibmc
+pkgbase=python-pylibmc
+pkgname=(python-pylibmc python2-pylibmc)
pkgver=1.4.1
-pkgrel=1
+pkgrel=2
pkgdesc="Quick and small memcached client for Python"
-url="http://pypi.python.org/pypi/pylibmc"
-arch=("i686" "x86_64")
-license=("GPL")
+url='http://pypi.python.org/pypi/pylibmc'
+arch=('i686' 'x86_64')
+license=('GPL')
-depends=("python" "libmemcached")
-makedepends=("gcc" "zlib")
+depends=('libmemcached')
+makedepends=('gcc' 'zlib')
source=("https://pypi.python.org/packages/source/p/pylibmc/pylibmc-$pkgver.tar.gz")
md5sums=('eaed0ba707abc0eabb1356310febada1')
-package() {
+package_python-pylibmc() {
+ depends=('python')
+
cd pylibmc-"$pkgver"
python setup.py install --root="$pkgdir"
}
+
+package_python2-pylibmc() {
+ depends=('python2')
+
+ cd pylibmc-"$pkgver"
+ python2 setup.py install --root="$pkgdir"
+}