aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pygtail/APKBUILD
blob: 74c5c097cefd3734c80b48bff6a9e0077c040482 (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-pygtail
_pkgname=pygtail
pkgver=0.2.2
pkgrel=0
pkgdesc="Reads log file lines that have not been read"
url="http://github.com/bgreenlee/pygtail"
arch="noarch"
license="GPL2+"
depends="python"
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="42814a02ce3b55fbf06357b14c67c626  pygtail-0.2.2.tar.gz"
sha256sums="71153aec5c35f6b6b28f546155b8bc0a9cd93670693da49cdafe4a503f1383fd  pygtail-0.2.2.tar.gz"
sha512sums="54ea6d5d73b7a62c4dce7f6f896dde6569673812ffaf6ce29139f16726ca7283317a4af041f9f74186f58edeae4ea8270b9cb66a668b4f7346396314c42e1f42  pygtail-0.2.2.tar.gz"