aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-phpserialize/APKBUILD
blob: ef33d13155b43e9b00fa0eb458f9055a22c06e7c (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-phpserialize
_pkgname=phpserialize
pkgver=1.3
pkgrel=0
pkgdesc="A PHP serializer implementation for Python"
url="https://github.com/mitsuhiko/phpserialize"
arch="noarch"
license="BSD"
depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="cbf88a62e04135e3be3c7fe412525b8b  phpserialize-1.3.tar.gz"
sha256sums="bf672d312d203d09a84c26366fab8f438a3ffb355c407e69974b7ef2d39a0fa7  phpserialize-1.3.tar.gz"
sha512sums="8b5cabbccb4e336912c376ac70b4c4b7d192f22660d5f679caeb583e9f47f45b933c19683bed003a88b86f59099bcd63a576fd72ce67ea6573587ffb3fa9e5a0  phpserialize-1.3.tar.gz"