summaryrefslogtreecommitdiffstats
path: root/main/py-irc/APKBUILD
blob: ff68a96846b11eb74b6e67b6daddb1e03923463b (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
43
44
45
46
47
48
49
50
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-irc
_pkgname=irc
pkgver=8.0.1
pkgrel=0
pkgdesc="A python irc client library"
url="http://python-irclib.sourceforge.net/"
arch="noarch"
license="LGPL2+"
depends=""
depends_dev="python"
makedepends="$depends_dev py-hgtools py-setuptools"
install=""
subpackages="$pkgname-scripts"
source="http://pypi.python.org/packages/source/i/irc/$_pkgname-${pkgver}.zip"

_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
}

scripts() {
	_files="dccreceive.py dccsend.py irccat.py irccat2.py \
			servermap.py testbot.py"
	for _file in $_files; do
		install -Dm644 "$_builddir"/scripts/$_file \
			"$subpkgdir"/usr/share/doc/"$pkgname"/scripts/$_file || return 1
	done
}

md5sums="0d4073d11845cac2d9eef60505f3c5fc  irc-8.0.1.zip"
sha256sums="d7b0703f8fd94d67eac8136e4f8d8a4975b24f492766ba4372256932f44caf19  irc-8.0.1.zip"
sha512sums="6df02af77f0f7580f7ca1af273a46fe546c5c0aa55b75e2a689994f4547e6eed54c121e7d38b301f7874c98affe13a32bd5ff27401b9de90b02291a4e703c85c  irc-8.0.1.zip"