summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dcb0063f42b4923d51b8326861a20ad4272f168a (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Johannes Löthberg <johannes@kyriasis.com>

pkgbase=python-pylibmc-git
pkgname=(python-pylibmc-git python2-pylibmc-git)
pkgver=r585.8e783a6
pkgrel=1

pkgdesc='Quick and small memcached client for Python'
url="http://pypi.python.org/pypi/pylibmc"
arch=("i686" "x86_64")
license=("GPL")
depends=()
makedepends=('gcc' 'zlib' 'git')

source=('git+https://github.com/lericson/pylibmc.git')

md5sums=('SKIP')

pkgver() {
	cd pylibmc
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

package_python-pylibmc-git() {
	provides=('python-pylibmc')
	conflicts=('python-pylibmc')

	depends=('python' 'libmemcached')

	cd pylibmc
	python setup.py install --root="$pkgdir"
}

package_python2-pylibmc-git() {
	provides=('python2-pylibmc')
	conflicts=('python2-pylibmc')

	depends=('python2' 'libmemcached')

	cd pylibmc
	python2 setup.py install --root="$pkgdir"
}