aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-irc/APKBUILD
blob: 9df2f3d992bad30ec204c6d0c0e6a2c973e67114 (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.5.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="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_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="6588ecc709df2220d0a4474c71b4e434  irc-8.5.1.zip"
sha256sums="ff29edb5c51bbf6583f60f677e846b3eb651374c2f6b39800e4b4947c989b8db  irc-8.5.1.zip"
sha512sums="02f09b4c7dc4036ececc2aff97f761ddbc950dfebae298e95381d706f3b8be65704ad0a64ea9b581b5ce48f2a060beeb8b6ac5179a29844fe8e821502fc0d4a9  irc-8.5.1.zip"