aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flake8-snippets/APKBUILD
blob: 8c5a3ccbc96b5cdab1e4b4021927db5db8b4ccea (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-flake8-snippets
_pkgname=flake8-snippets
pkgver=0.1
pkgrel=1
pkgdesc="Extension for flake8 which lint for code snippets"
url="https://github.com/bitmazk/flake8-snippets"
arch="noarch"
license="MIT"
depends="python flake8"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.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"
	python setup.py build || return 1
}

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

md5sums="c1724b6d6442f8c91f92bad33741d687  flake8-snippets-0.1.tar.gz"
sha256sums="80fc92ea1ffa10b53c13fa8eb79dbe1993439cec777ea2737f9b2908c2c1e9e0  flake8-snippets-0.1.tar.gz"
sha512sums="5c08f96c2470381c59223e796ed9a76ff5bb2abeb6b85204b1af1ccfa0855b13f3629c3f8d83f931328de50fa6916e6c52b4816a83e65e88deefc815c46ea30a  flake8-snippets-0.1.tar.gz"