aboutsummaryrefslogtreecommitdiffstats
path: root/testing/irclog2html/APKBUILD
blob: e387540ea960d78ce28ec5250e9e49a5210ef53a (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=irclog2html
pkgver=2.14.0
pkgrel=0
pkgdesc="Script to convert IRC logs to HTML and other formats"
url="http://mg.pov.lt/irclog2html/"
arch="noarch"
license="GPL2+"
depends="python"
depends_dev=""
makedepends="python-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"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
	install -Dpm 0644 src/$pkgname/irclog.css \
		"$pkgdir"/usr/share/$pkgname/irclog.css || return 1
}

md5sums="37b71681e8e11a80649b180c432121b1  irclog2html-2.14.0.tar.gz"
sha256sums="d905790ee62319f441e34e4460f2c67d8d47e45bc24c3f0e0d743f83eaae69a7  irclog2html-2.14.0.tar.gz"
sha512sums="135c53f868ef32a4c70029255583d34b0b1800ed06089d2f4ad91394f10c35fb5457bd400a1aa55e8671f37f8d277af40796d8b9dee412c28a529769ce886d2c  irclog2html-2.14.0.tar.gz"