aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-yapsy/APKBUILD
blob: f63bfa79c3d4423874efd03b2d9b96fe674d3d30 (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-yapsy
_pkgname=Yapsy
pkgver=1.11.223
pkgrel=0
pkgdesc="A DIY Python plugin management toolkit"
url="http://yapsy.sourceforge.net"
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="d8b71cd35e6daa36ae83f76874f450aa  Yapsy-1.11.223.tar.gz"
sha256sums="45bb39a72461913388d7f3e92ce33816e84fff59946c45e16796eb1fb1d5f2a6  Yapsy-1.11.223.tar.gz"
sha512sums="690d0ab78eafede5a75cf7b7bbcfce00b05c7b6f958980c3b67815bcaf848a8098b6e81afd1d95c5821fa4bb7affefab2cde208ff7c8ac7952615c8ddbafe305  Yapsy-1.11.223.tar.gz"