summaryrefslogtreecommitdiffstats
path: root/testing/py-newt_syrup/APKBUILD
blob: fe2accbdf3c21448308ed5ded88efaf2d703ab2a (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-newt_syrup
_realname=newt-syrup
pkgver=0.2.0
pkgrel=1
pkgdesc="Newt Syrup is an app framework built on top of Newt"
url="http://newt-syrup.fedorahosted.org/"
arch="noarch"
license="LGPLv2+"
depends="py-newt"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="saveas-https://github.com/mcpierce/newt-syrup/archive/RELEASE-0.2.0.tar.gz/${pkgname}-${pkgver}.tar.gz"

_builddir="$srcdir"/${_realname}-RELEASE-$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"
	python setup.py build || return 1
}

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

md5sums="7f41378272a8aeea64dbb99e5c4d3ef0  py-newt_syrup-0.2.0.tar.gz"
sha256sums="5c92b37984186ce16d036c978564810430bc39209acae85010ca2c7dc0143ef9  py-newt_syrup-0.2.0.tar.gz"
sha512sums="ea1573a35cb097a7ff0ae1326eaedef37fbfe4af8e5b7bf17e17f785ae35823797cde570f366eb8168f81e520ef75d209a15b6c9192fe2e92294d76f312016fa  py-newt_syrup-0.2.0.tar.gz"